Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find getstring column

Status
Not open for further replies.

limeg95

Programmer
Oct 22, 2009
124
CA
i find row and column may be 54 or may be 55
how do i put it here.
Trim(MyScreen.GetString(MyRw, 54, 5))
 
sorry i forgot the coding
Set MyArea = MyScreen.Search("STARTED - TIME=")


MyScreen.Moveto MyArea.Bottom, MyArea.Left
MyRw = MyScreen.Row
MyCol = MyScreen.Col


If MyRw <> 1 Then

MyStart = Trim(MyScreen.GetString(MyRw, MyCol, 5))
' MsgBox (MyScreen.GetString(MyRw, 54, 5))
 



Hi,

Please explain and post relevant examples.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
thanks skip for your valuble time
for example
STARTED - TIME=18.56.50
i need only 18.56
 



I do not understand the problem. You ARE getting only 5 characters.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
i have another issue
i put MyScreen.SendKeys ("F" + " " + "ENDED - TIME")
i need f 'Ended -time' in screen
but it shows the above code f ended-time
could you helpme only 5 characters onlythe time
 

Please state your issues CLEARLY. Post your ACTUAL CODE.

I STILL do not know what your initial problem is. You have not clearly stated your problem.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
skip
instead of search i use find option
i have the below code
Set MyArea = MyScreen.find("f"+ "'" + "STARTED - TIME=" + ""'")


MyScreen.Moveto MyArea.Bottom, MyArea.Left
MyRw = MyScreen.Row
If MyRw <> 1 Then

MyStart = Trim(MyScreen.GetString(MyRw, MyCol, 5))
' MsgBox (MyScreen.GetString(MyRw, 54, 5)
the screen shows the started - time =12.59.55
how do i get 12.59
if i put MyCol it does shows the different position
how do i find col here
 


if i put MyCol it does shows the different position
Different could be one column left or right, or it could be in the next county!!!

You MUST realize that we cannot see what is on your screen or what is in your mind.

You MUST convey vital and necessary information CLEARLY, CONCISELY and COMPLETELY.

Try to FOCUS!

Please copy the screen and PASTE here as the basis for this discussion. Use TGML - [ignore][TT]...[/TT][/ignore] Tags.



Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
your MyCol here
Code:
MyStart = Trim(MyScreen.GetString(MyRw, MyCol, 5))
is where you found this STARTED - TIME=" which means MyCol is at the first letter of STARTED.
so counting each column until you reach the "=" sign is 14 characters.
add 15 like this:
Code:
MyStart = Trim(MyScreen.GetString(MyRw, MyCol + 15, 5))
should give you what you want.
use this to see if that is correct. adjust to suit
Code:
msgbox MyStart
 
vzchin
thanks it works great. exactly what i want.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top