Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Properties as DEFINED CONSTANTS
Message
From
15/10/1999 12:24:11
John Baird
Coatesville, Pennsylvania, United States
 
 
To
15/10/1999 11:48:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00276908
Message ID:
00276937
Views:
25
I was setting it in the property sheet. I will set it in code instead.
Thanks for the replies.

>>I have a method that I'm adding to my base classes to check security levels.
>>
>>I have an include file that defines:
>>
>>#DEFINE CMD_ADD 1
>>#DEFINE CMD_EDIT 2
>>
>>
>>Now I drop an instance of the commandbutton on a form and set the property nRights TO CMD_ADD. the property gets passed as a string value to the class "CMD_ADD" instead of 1.
>>
>>Is there a way to do this?
>
>Does the code look something like this?
>
>THISFORM.cmdButtton.nRights = CMD_ADD
Previous
Reply
Map
View

Click here to load this message in the networking platform