Howto assign text in text field (edit) to dialog?
Posted: Wed Jun 08, 2011 9:01 am
Hello,
In the dialog "connect" there are two text fields (edit)
One is "ServerName" , the other is "ServerPort"
The object rule is that both text fields must be filled in, then the "Next" button is available.
I want to predefine a value for the second Text field "ServerPort" so for start up the value "8080" is shown. But the user can change this value if he want.
I tried this value "8080" with the property "Text".
If the dialog is shown the value "8080" is available and "ServerName" is empty. Problem is, if you fill in a value for the first text field "ServerName" the value "8080" for ServerPort will be deleted and now it is blank. Why this?
How can I pre define a text to the second text field "ServerPort" like "8080" ?
How can I work with "Receive Data from Written Variable value"? Because I have two text fields and I need a pre defined value only for the second text field
I know I can do a "Set Variable ServerPort to 8080" before I call "show dialog" but how can I asign this only to the text field "ServerPort"?
thank a lot for help
regards
Hansjoerg
In the dialog "connect" there are two text fields (edit)
One is "ServerName" , the other is "ServerPort"
The object rule is that both text fields must be filled in, then the "Next" button is available.
I want to predefine a value for the second Text field "ServerPort" so for start up the value "8080" is shown. But the user can change this value if he want.
I tried this value "8080" with the property "Text".
If the dialog is shown the value "8080" is available and "ServerName" is empty. Problem is, if you fill in a value for the first text field "ServerName" the value "8080" for ServerPort will be deleted and now it is blank. Why this?
How can I pre define a text to the second text field "ServerPort" like "8080" ?
How can I work with "Receive Data from Written Variable value"? Because I have two text fields and I need a pre defined value only for the second text field
I know I can do a "Set Variable ServerPort to 8080" before I call "show dialog" but how can I asign this only to the text field "ServerPort"?
thank a lot for help
regards
Hansjoerg