What ever happen to CURPOS$


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on August 08, 2018 at 10:27:02:

While testing a program, using (Partial Scan Codes On), I discovered that the CURPOS$ value is always wrong, seems to be pretty random but stays the same within a program.

I found in the wiki that there is a new method of getting the cursor position on an input SUB(STS(0),9,2).

The source code currently using CURPOS$ is pretty old (about 20 years).

I am just wondering, at what point did CURPOS$ fell off the edge of the world ? Or is it, that we are now using Comet32 ?

Confirmed! Programs Compiled using the Comet32 will not report a proper CURPOS$. Compiled as Comet16 will work on Comet32.

One last thing, the reported positions are off by 1. For @(24,10), while CURPOS$ returns @0A19@, SUB(STS(0),9,2) returns @180A@


Tested on a Windows 7 x64 running Comet32 2018.514 Rel 17.01
Tested on a Windows 7 x32 running Comet16 2017.512 Rel 17.01



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]