Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it okay to name a function True()
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Firebird
Miscellaneous
Thread ID:
01097002
Message ID:
01097011
Views:
11
This message has been marked as the solution to the initial question of the thread.
I would advise against using such common programming term as a function name. Imagine what would happen if same day you use
#DEFINE True .T.
>
>I have just created a function True(). I do not think this is a reserved word in VFP but I am also using FireBird as the backend, in fact I had to create this function to handle a small int used as a boolean field in VFP.
>
>Please let me know should I rename it to _True() so something that is more compatible with VFP. The function goes as follows:
>
>
FUNCTION True(luValue)
>	RETURN (NOT ISNULL(luValue)) AND (luValue = 1)
>ENDIF
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform