Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a property's value of the activecontrol on a for
Message
From
07/01/1999 16:52:13
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173807
Message ID:
00173810
Views:
29
>I need to pass the value of a property of the activecontrol on a form to a generic messagaging routine.
>
>Basically:
>
>On Key Label F1 DO ghelp WITH Thisform.ActiveControl.agenttext
>
>
>PROCEDURE ghelp
>parameter mtext
>
>=messagebox(mtext,0,'The Help You Wanted')
>RETURN
>
>************************************************
>
>The ghelp procedure is far more complex but basics of what I want to do.
>
>Ideas?
>Thanx.

How bout ON KEY LABEL F1 DO gHelp WITH _SCREEN.ActiveForm.ActiveControl

Pass the object and grab what you need when your inside the method or procedure you're calling.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform