>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