DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Why I can not open "open file" dialog when using FileNameGet?

For my script, I tried to open file using FileNameGet, but it doesn't work,what's wrong with this script?
 
Call WndShow("SHELL", "Normal")
Call  SUDDefLoad("PSA")
Do
  Call SUDDLGSHOW("Mainmenu")
  If DLGSTATE = "IDOk" Then
   
    If CUSTLASTCTRL="BtLoad" Then
       Call FileNameGet("DATA", "FileRead")
'     If DlgState ="IDOk" Then
'      Call DataLoad(FileDlgName) 
'     Else DlgState = "IDOk"
'     End If
  
    End If
  End If 
Loop Until DLGSTATE = "IDCancel"
Call WndShow("SHELL", "Normal")
Call ApplicationExit()
0 Kudos
Message 1 of 5
(4,375 Views)
Hello!
 
Because SUD doesn't support 'CUSTLASTCTRL'!
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 5
(4,374 Views)
I forgot to say: There is no equivalent. You have to set a variable in the button event in SUD.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 3 of 5
(4,370 Views)
but you can use the variable "CustLastCtrl" and set it in the button event
greets Andreas

Volkswagen AG
Wolfsburg - Germany
0 Kudos
Message 4 of 5
(4,362 Views)
@Andreas: You can but beginning with DIAdem 10 it isn't documented anymore -> you don't know in wich future version it is eliminated.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 5 of 5
(4,358 Views)