Show a dialogbox to ask user
for input.
Parameters:
Name |
Type |
Description |
msg |
String |
Window
caption, like: Check for Birthdays |
title |
String |
Caption
of the input field, like: Number of days ahead |
defaultValue |
String |
Optional
parameter If set,
value will be shown to the user in the input field |
Returns:
Type |
Value |
Description |
String |
user
input |
Returns
the value, input by the user Return
an empty string on cancel |
Available in:
WindowMain |
WindowLink |
YES |
YES |
Used in:
XojoScript
Name |
GUID |
Set
new BirthdaysTimeSpan property |
B73607E5-3D47-40D2-9B16-6ADDDA94FD4E |
Hint: You can find
references to XojoScripts which make use of this function by sending the
following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from
im_scripts where ScriptCode Like '%GetInput%'
Example XojoScript:
Dim
currentValue As String
= Str(GetPropertyInt("BirthdaysTimeSpan"))
Dim
numDays As String
= GetInput("Number
of days ahead","Check for
Birthdays",currentValue)
If
Val(NumDays) > 0 Then
Call SetpropertyInt("BirthdaysTimeSpan",Val(numDays))
End
If