Hey there.
It looks like I'm too confused after reading the manual to use the NSD_GetText function.
I want to create a custom page that asks for a Text input. And this text should be written into the registry.
The MessageBox on the last line gives an empty box, so it seems like it's not working.
Can anybody help me out?
It looks like I'm too confused after reading the manual to use the NSD_GetText function.
I want to create a custom page that asks for a Text input. And this text should be written into the registry.
The MessageBox on the last line gives an empty box, so it seems like it's not working.
Can anybody help me out?
PHP Code:
Var Dialog
Var Label
Var Text
Var DB
Function SETTINGS
nsDialogs::Create 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateLabel} 0 0 110% 12u "What's the name of your database?"
Pop $Label
${NSD_CreateText} 0 13u 25% 12u "database_name"
Pop $Text
nsDialogs::Show
${NSD_GetText} 1018 $DB
MessageBox MB_OK "$DB" #my test if it works
FunctionEnd
Comment