Couple of VFP to X# issues
Posted: Tue Aug 11, 2020 1:55 am
I've been evaluating the VFP side of this product for more than a week now and I can see a big opportunity here. I am happy of what I am seeing so far. Kudos to your team developing this amazing product. I understand it's still partially completed but I hope some of the issues I encountered while evaluating this product will be addressed in the next release (or maybe there is already a workaround that I am not aware of)
Here are the issues I found so far that works in VFP but not (yet) in X#:
#1. This code errors out because of the enclosed quotation marks(") in the TEXT/ENDTEXT block. Removing them works or replacing them with single quote (') works as well.
#2. Macro substitution doesn't seem to work on objects when accessing it property value.
#3. In an existing Table with CDX, if there is at least one index tag that has an index expression that is not yet implemented, you can no longer use any of its index tag. For example:
Thank you and all the best to your team.
Loy
Here are the issues I found so far that works in VFP but not (yet) in X#:
#1. This code errors out because of the enclosed quotation marks(") in the TEXT/ENDTEXT block. Removing them works or replacing them with single quote (') works as well.
Code: Select all
lcVar = "Loy"
TEXT TO cTemp TEXTMERGE NOSHOW PRETEXT 15
"<<lcVar>>"
ENDTEXT
Code: Select all
obj = createobject("empty")
AddProperty(obj,"MyName","Loy")
? obj.MyName && prints "Loy" - This works
LOCAL macrovar
macrovar = "obj.MyName"
? ¯ovar && This errors out
//This one works when you get the value of the property
LOCAL prop
prop = "MyName"
? obj.&prop
//But, this one errors out when setting the value of the property
obj.&prop = "Jack"
#3. In an existing Table with CDX, if there is at least one index tag that has an index expression that is not yet implemented, you can no longer use any of its index tag. For example:
Code: Select all
USE Employee.dbf New
//Note: My table has the following existing index tags:
//EMPID TAG EMPID
//LASTNAME TAG LASTNAME
//TTOC(TIMESTAMP)+OTHERFIELD TAG TIMESTAMP
//Note TTOC() function here is not yet implemented, so if I
SELECT "Employee"
SET ORDER TO "LASTNAME"
GO TOP
SCAN
? LASTNAME
ENDDSCAN
//The order will not work. But if I remove the "TIMESTAMP" tag, this will work.
Thank you and all the best to your team.
Loy