Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Function SelectIniFileDialogComboBoxChanged
  2.        
  3.         Pop $0
  4.        
  5.         ${if} $0 == $hwnd_lbox1_dlg_SelectDbIni
  6.        
  7.             MessageBox MB_OK '1 changed! :-)'
  8.            
  9.             ${NSD_GetText} $hwnd_lbox1_dlg_SelectDbIni $R0
  10. ;            ${NSD_CB_SelectString} $hwnd_lbox1_dlg_SelectDbIni $R0
  11.            
  12. ;            MessageBox MB_OK '$$R0 = $R0'
  13.            
  14.             ${if} $R0 == ''
  15.                
  16.                 MessageBox MB_SETFOREGROUND|MB_TOPMOST|MB_OK 'Ungültige Datenbank Konfigurationsdatei!'
  17.            
  18.             ${else}
  19.            
  20.                 ClearErrors
  21.                 ReadIniStr $0 '$vSourceDir\system\db\$R0' 'DATABASES' 'METADATA'
  22.                
  23.                 ClearErrors
  24.                 ReadIniStr $1 '$vSourceDir\system\db\$R0' 'DATABASE $0' 'DBMS'
  25.                
  26.                 ${if} $1 == 'SQLSERVER'
  27.                 ${orif} $1 == 'SQLSERVERUNICODE'
  28.                
  29.                     ShowWindow $hwnd_lbl_SqlServer ${SW_SHOW}
  30.                     ShowWindow $hwnd_txt_SqlServer ${SW_SHOW}
  31.                    
  32. ;                    MessageBox MB_OK '$$vSqlServerInstance = $vSqlServerInstance'
  33.                    
  34.                     ${if} $vSqlServerInstance != ''
  35.                         ${NSD_SetText} $hwnd_txt_SqlServer $vSqlServerInstance
  36.                     ${endif}
  37.    
  38.                 ${else}
  39.                
  40.                     ShowWindow $hwnd_lbl_SqlServer ${SW_HIDE}
  41.                     ShowWindow $hwnd_txt_SqlServer ${SW_HIDE}
  42.                    
  43.                 ${endif}
  44.                
  45.             ${endif}
  46.            
  47.         ${endif}
  48.        
  49.     FunctionEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement