Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API InputBox
Message
 
 
À
03/03/2004 15:45:58
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00882884
Message ID:
00882952
Vues:
18
>Hi,
>Does anyone know how to use the API to get user input similar to the Inputbox function? Thanks.
>
Hi Gary,

I don't think, there's such API.
You can use Windows Script Control downloadable at http://www.microsoft.com/downloads/details.aspx?FamilyId=D7E31492-2595-49E6-8C02-1426FEC693AC&displaylang=en to access VBScript Inputbox function. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctinputbox.asp?frame=true for syntax.
LOCAL oSc AS MSScriptControl.ScriptControl
TEXT TO lcStr NOSHOW
	Function ReturnThis()
	ReturnThis = InputBox("Enter something ...")
	End Function
ENDTEXT
oSc = CREATEOBJECT("MSScriptControl.ScriptControl")
oSc.Language = "VBScript"
oSc.AddCode(lcStr)
lcResult = oSc.Run("ReturnThis")
? lcResult
BTW, why can't you use VFP Inputbox function?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform