After porting of a test VO-application in XSharp the incompatibility in an indexing in case of access to PSZ variable bytes was found. In VO the indexing begins with 1, and in XSharp begins with 0 (it was clarified in the course of debugging). Though Visual Objects dialect is selected.
Example:
Code: Select all
LOCAL p AS PSZ
LOCAL i AS DWORD
LOCAL c AS STRING
p := MemAlloc(3)
MemCopyString(p, "abc", 3)
c := ""
FOR i := 1 UPTO 3
c += CHR(p[i])
NEXT
Best regards,
Leonid