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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking line position

Status
Not open for further replies.

cheetahz

Technical User
Dec 4, 2008
101
US
Is there a way or what would the sytax look like to check if certain positions for text are avalible or not and fill it in with some text depending on which lines are avalible

accually there are only two possibilities and depending which scenerio there would be a differnt macro run.

Any ideas
 
just an update to be clear.

there are tab positions that need X's filled in for different scenerios
 
i might be able to use something like this to locate the first cusor position and if true then run my code?



Dim Sys As Object, Sess As Object, MyScreen As Object
Set Sys = CreateObject("EXTRA.System")
' Assumes an open session

Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen

CurrentRow = MyScreen.Row
CurrentCol = MyScreen.Col

MsgBox "The cursor is at " + Str$(CurrentRow) + "," + Str$(CurrentCol) + "."
End Sub

Copyright 1996 - 2000, Attachmate Corporation. All rights reserved.
 
what is the correct syntax to say

If CurrentRow, 07
And
If CurrentCol, 04

Then
Rum my code

End IF
End Sub

any help would be appreciated
 

not sure i understood you correctly, but let's start with something like this

Code:
if CurrentRow = 7 and CurrentCol = 4 Then
Run my Code
else
Run my other code
End if

zach
 
Yes that is what i ended up with but i also have another question.

is it possible to grab a value on the screen and do some math on it and post it back to the screen?

Thanks
 
Also is it possible to copy something and paste it in an external web form?
 



"i also have another question"

Please start a new thread for new questions.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top