Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to generate a unique key for help ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00206075
Message ID:
00206239
Vues:
18
>That's good for the form, thanks.
>But what about the current control on the form?
>
>Eric


_SCREEN.ActiveForm.CurrentControl


>>>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform