Customer Center

Welcome back

My Account Logout
#4950

Just as an informational post.  There are pre-built methods for evaluating cursor positions:
Pause "@10,20"   'Where Row=10 and Col=20 – this will continuously check until that's where the cursor is
At ("@10,20")  – a boolean check – is the cursor there or not.

These support all sorts of nice constructs for defining ranges as well, or wildcarding, and even comparing text near the cursor.

Evaluating Row and Col properties directly is useful for reading "near" the current cursor postion (the View command does support 0 to indicate current row/current column – but I prefer the readability of using Row or Col instead)

Rows and Cols return the number of rows or columns a given stream connection is supporting. Typically these properties are useful when reading dynamically using a For/Next  – Rows being the most useful
For i=1 to Rows – read down all the rows
Cols would tell you the length of rows if the use case was read an entire row for some reason.