DBWInputBox1

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface >

DBWInputBox1

Description

Shows an input box interface such as DBWinputBox function but allowing to specify a default value

DBWinputbox1

Syntax

Function DBWInputBox1(Title, DefaultValue, byref InputString)

Parameters

Title

title of the form

DefaultValue

default value for the string

Return values

TRUE

if the OK button was submitted

FALSE

if the CANCEL button was submitted

InputString

contains the string typed at the moment of submission.

See also

DBWInputBox function

Example

title = "Insert a string"
res=DBWInputBox1(title , "this is the default value", input_string)
if res=FALSE then
 DBWMsgBox "Canceled!"
else
 DBWMsgBox input_string
end if