Greetings,
Ah... that's a bit more of a challenge -the approach shown in the link will
help. It's close to doing what you are- except instead of storing / parsing
the wholes screen. It walks down the available text using a For-Next loop
where the loop starts at Row below the title / mnemonic etc.

You'll still need to navigate the list- there's not a way to get all the
text at once since these aren't "real windows lists" unfortunately.

As for seeing when you've reached the end - basically you're looking for a
"blank row" where data used to be
Regards,
Thom

Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
 
Sign up for my weekly webinar!

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bendapudi, Ranjit
Sent: Wednesday, January 02, 2008 1:43 PM
To: [email protected]
Subject: RE: [Talk] Cursor Location.

Thanks for the super fast reply. I will look into the article.

I am trying to get all the Items in the List into a collection. I am not
looking for a particular item.

Thanks again.

Ranjit
FCG

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thom C. Blackwell
Sent: Wednesday, January 02, 2008 12:38 PM
To: [email protected]
Subject: RE: [Talk] Cursor Location.

Greetings,
Here's an example from our website that may help you (I am assuming you need
to "walk down" till you find a particular item in the Lookup).

http://www.bostonworkstation.com/customer_center/script_center/script_detail
s.aspx?id=252&cat=8

Regards,
Thom

Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
 
Sign up for my weekly webinar!

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bendapudi, Ranjit
Sent: Wednesday, January 02, 2008 1:30 PM
To: [email protected]
Subject: RE: [Talk] Cursor Location.

Hello,
Thanks for the detailed information regarding the usage of BWS functions.

Here is what I am trying to do.
I have a lookup screen with a list of items in the lookup.
To walk down the list what I did was I parse the Screen to an array list, by
doing 
Dim arrList as variant
arrList =Split(View(),vbcrlf).
But the above array contains Title, Mnemonic and some blank items.
If I know the current cursor "Row" location which corresponds to a an
element in the array, I can start walking down the Lookup List from that
element, thus eliminating Title, Mnemonic ect.
Also I am having an issue with only going certain number of Rows in the
Lookup List. For Eg: If there are 35 items in the lokup list, My View will
see only the visible part of the Lookup List, how do I know when I reached
the last "Visible" row? Or how can I get all the 35 Items of the lookup
list?

Any advice is helpful. Appreciate your guidance.

Thank you
Ranjit Bendapudi
First Consulting Group.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thom C. Blackwell
Sent: Wednesday, January 02, 2008 6:10 AM
To: [email protected]
Subject: RE: [Talk] Cursor Location.

Greetings,
There are two properties- Row and Col which return the Row and Column of the
current cursor position. 

However, please don't use these if what you want to do is "when the screen
is here, do X" as there are several pre-build BWS commands for doing this -
here they are and why each one would be used:

To "wait" till the screen is in a particular condition use a Pause command:
Pause "@2,4" - Row 2, Col 4. 

Setting the Timeout property after your Connect command - i.e. Timeout=10
will cause an error to be thrown if the Pause condition is not satisfied in
the amount of time(seconds) specified by the Pause command.

Sub Example
On error goto Errh:
Connect ....
Timeout=10
Pause "Bogus Screen @1,1"
...
Exit sub
Errh:
If Err=seTimeOut then
        DoStuff
End if

End sub

There are several "One time Check" commands- NOTE these just see if the
screen is where you are looking for - these MUST be used inside a loop since
they do not take into account screen timing.

1.Rule - this is what is generated by Rules based scripting. It is a Boolean
function that allows the detecting for more than one condition delimited by
an & at a time:
do
If Rule("[EMAIL PROTECTED],1&@3,5") then
        'Dosomething
End if
...
Stable .2
Loop

2. At -same as Rule but only allows 1 condition:
do
If At("@3,5") then
        'Dosomething
End if
...
Stable .2
loop
3. PauseLoop- similar in concept to At, but is used for conditionally keying
data:
do
Pauseloop "@3,5", "MyData~" ' will key in MyData followed by an Enter key
(the ~ is the Enter)
...
Stable .2
Loop

Regards,
Thom

Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com
 
Sign up for my weekly webinar!

LEGAL NOTICE Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only. Access to
this E-mail by anyone else is unauthorized. If you are not an addressee, any
disclosure or copying of the contents of this E-mail or any action taken (or
not taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately, then delete this
message and empty from your trash.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bendapudi, Ranjit
Sent: Monday, December 31, 2007 7:28 PM
To: [email protected]
Subject: [Talk] Cursor Location.

Hello Talk Members,

I am trying to get the current location of the Cursor for a Meditech C/S
screen. I need to know on which row the cursor is at.

Thank you for your Help/Advice.

Happy New Year to all.

Ranjit Bendapudi
FCGIS
[EMAIL PROTECTED]
(615)-507-8054
This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any
review, reliance or distribution by others or forwarding without express
permission is strictly prohibited. If you are not the intended recipient,
please contact the sender and delete all copies. 



This email may contain material that is confidential, privileged, and/or
attorney work product for the sole use of the intended recipient.  Any
review, reliance, or distribution by others or forwarding without express
permission is strictly prohibited.  If you are not the intended recipient,
please contact the sender and delete all copies.


This email may contain material that is confidential, privileged, and/or
attorney work product for the sole use of the intended recipient.  Any
review, reliance, or distribution by others or forwarding without express
permission is strictly prohibited.  If you are not the intended recipient,
please contact the sender and delete all copies.


This email may contain material that is confidential, privileged, and/or
attorney work product for the sole use of the intended recipient.  Any
review, reliance, or distribution by others or forwarding without express
permission is strictly prohibited.  If you are not the intended recipient,
please contact the sender and delete all copies.

Reply via email to