Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function SelectIniFileDialogComboBoxChanged
- Pop $0
- ${if} $0 == $hwnd_lbox1_dlg_SelectDbIni
- MessageBox MB_OK '1 changed! :-)'
- ${NSD_GetText} $hwnd_lbox1_dlg_SelectDbIni $R0
- ; ${NSD_CB_SelectString} $hwnd_lbox1_dlg_SelectDbIni $R0
- ; MessageBox MB_OK '$$R0 = $R0'
- ${if} $R0 == ''
- MessageBox MB_SETFOREGROUND|MB_TOPMOST|MB_OK 'Ungültige Datenbank Konfigurationsdatei!'
- ${else}
- ClearErrors
- ReadIniStr $0 '$vSourceDir\system\db\$R0' 'DATABASES' 'METADATA'
- ClearErrors
- ReadIniStr $1 '$vSourceDir\system\db\$R0' 'DATABASE $0' 'DBMS'
- ${if} $1 == 'SQLSERVER'
- ${orif} $1 == 'SQLSERVERUNICODE'
- ShowWindow $hwnd_lbl_SqlServer ${SW_SHOW}
- ShowWindow $hwnd_txt_SqlServer ${SW_SHOW}
- ; MessageBox MB_OK '$$vSqlServerInstance = $vSqlServerInstance'
- ${if} $vSqlServerInstance != ''
- ${NSD_SetText} $hwnd_txt_SqlServer $vSqlServerInstance
- ${endif}
- ${else}
- ShowWindow $hwnd_lbl_SqlServer ${SW_HIDE}
- ShowWindow $hwnd_txt_SqlServer ${SW_HIDE}
- ${endif}
- ${endif}
- ${endif}
- FunctionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement