Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange error with macro expansion
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Strange error with macro expansion
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00995177
Message ID:
00995177
Views:
44
I have some code in a program that's compile to an EXE. An example of very similar code is below. When the code in my EXE runs, it fails with an error 1231 - Missing operand. But only when the value in the EditThisLine field of the cursor is True. If it is False, it works fine. But the code below that recreates almost the exact same situation (just a different cursor name, that's all) runs fine, regardless of the value in the EditThisLine field. I'm at a loss to explain this at the moment. Anyone have any suggestions?
clear all
close all

create cursor TestCursor (EditThisLine l)
append blank
replace EditThisLine with .t.

TestExpr = "not TestCursor.EditThisLine"

FinalValue = &TestExpr

? FinalValue

return
Thanks,

Russell Campbell
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Next
Reply
Map
View

Click here to load this message in the networking platform