Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be considered a Bug?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Can this be considered a Bug?
Miscellaneous
Thread ID:
00906897
Message ID:
00906897
Views:
31
Hi Friends!

I discovered that VFP 8 no accepts that a Compile-Time Constant is defined with the same name of the field of a file using a ALIAS, see the example below:

* ------------------------------------------- *
#DEFINE ISTRUE File1->IsTrue

USE MyFile ALIAS File1

IF ISTRUE
MESSAGEBOX("TRUE")
ELSE
MESSAGEBOX("FALSE")
ENDIF
* ------------------------------------------- *

In this case VFP8 presents the message:
Object File1 is not found

When I change the name of the constant or I don't use ALIAS all works usually

Can this be considered a Bug?

Or else is a Bug will be that I can suggest Microsoft that talks about this situation in Help of the #DEFINE?

Thanks in Advance

[]'s

Dionísio
Next
Reply
Map
View

Click here to load this message in the networking platform