Check if a textbox is empty
Hi,
How can we check a text box is empty or not? There is a Custom Page settings dialog in my wizard. In that I want to check whether a text box is empty or not. This is the code I have written, but by default "$MySQLHostNameHandle" contains some junk value!
Var MySQLHostNameHandle
Function PageSettings
${NSD_CreateText} 25u 73u 100u 15u "$MySQLHostName"
Pop $MySQLHostNameHandle
strcmp $MySQLHostNameHandle "" ER33 OK33
ER33:
${NSD_SetText} $MySQLHostNameHandle "localhost"
OK33:
FunctionEnd
The intention of this code is, When the dialog is created for the first time, it has to fill the text box with "localhost", but if the user changes the textbox data, and he clicks "next" and "back", the text box has to contain the user supplied data than the default data..
How can I do this?
Thanks
Lloyd