|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface > DBWInputBox1 |
Shows an input box interface such as DBWinputBox function but allowing to specify a default value

Function DBWInputBox1(Title, DefaultValue, byref InputString)
Title |
title of the form |
|---|---|
DefaultValue |
default value for the string |
TRUE |
if the OK button was submitted |
|---|---|
FALSE |
if the CANCEL button was submitted |
InputString |
contains the string typed at the moment of submission. |
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