Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to generate a unique key for help ?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206075
Message ID:
00206153
Views:
22
That's good for the form, thanks.
But what about the current control on the form?

Eric
>>I am trying to create a function that will fire anytime the user press F1 across the application, so it will be something like :
>>ON KEY LABEL F1 DO myfunction WITH ...
>>In my function, I want to generate a unique key to identify the object where the user is currently located.
>>
>>() Before, in FOXPRO DOS, I use to do it with the following :
>>ON KEY LABEL F1 DO myfunction WITH UPPER(PROGRAM()), UPPER(POPUP()), ;
>> UPPER(PROMPT()), UPPER(VARREAD()),;
>> SUBSTR(UPPER(SYS(16)), RAT("\", SYS(16)) + 1)
>>
>>...and it was working fine.
>>
>>Now, with VFP6, what would be the best way? Should I include stuff like VARREAD(), WONTOP(), THISFORM, etc...?
>>
>>Thank you.
>>Eric.
>
>VARREAD won't work (unless you're still doing READ's, blech!) and you can't use THISFORM in an ONKEY LABEL command. You can use _SCREEN.ActiveForm in place of THISFORM.
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform