Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API InputBox
Message
 
 
To
03/03/2004 15:45:58
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00882884
Message ID:
00882952
Views:
17
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform