Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Predefined InputBox in VFP?
Message
De
17/02/1999 13:07:14
 
 
À
17/02/1999 10:40:14
Pascal Binette
Pratt & Whitney Canada
Saint-Hubert, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00188398
Message ID:
00188503
Vues:
18
>Is there a predefined InputBox you can use in VFP. If there is I cant find it.

No, but you can build your own fairly easily. Create a generic modal form with a label and a textbox on it. In the form's init, put some code like:
Lparameter tcLabelCaption, tcInputMask, tuInitialValue
if type('tcLabelCaption') = "C"
	thisform.maclabel1.caption =tcLabelCaption
endif

thisform.maclabel1.autosize = .T.
if type('tcInputMask') = "C" AND !EMPTY(tcInputMask)
	thisform.mactextbox1.InputMask = tcInputMask
endif

IF TYPE('tuInitialValue') <> "L"
	THISFORM.mactextbox1.Value = tuInitialValue
endif
In the unload event of the form, return the textbox's value control.

Then you can get a value from the use like:

DO FORM Gettext TO lcTextVal WITH "Enter a phone number", "999-999-9999"

>Also, I would like to know if there is a predefined Find dialog box to search in a table like oyu have in Access.

No. But you'll probably find something like you are looking for in the VFP 6 foundation classes.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform