File is string
//Picker to choose the document to open
sFile = fSelect(fExeDir(),"","Open","PDF file (*.PDF)"+ TAB + "*.pdf","*.pdf",fPathUNICODE)
///////// Managing the list of the last 5 documents opened /////////
//Checks whether the document is already found in the list
nSubscript is int = ListSeek(COMBO_LastDocs,sFile,True)
IF nSubscript = -1 THEN
//It is not there
//If 5 documents are already found in the list of last 5 opened documents, delete the last one
IF COMBO_LastDocs..Occurrence = 5 THEN
ListDelete(COMBO_LastDocs,5)
END
ELSE
//It is already there
//Delete it from its former position and place it in 1st position
ListDelete(COMBO_LastDocs,nSubscript)
END
//Add the document that was opened in 1st position in the list
ListInsert(COMBO_LastDocs,sFile,1)
//Select it
ListSelectPlus(COMBO_LastDocs,1)
//And display this document
ExecuteProcess(COMBO_LastDocs,trtSelection)
try this code but
not open this pdf file password " 123"
//Picker to choose the document to open
sFile = fSelect(fExeDir(),"","Open","PDF file (*.PDF)"+ TAB + "*.pdf","*.pdf",fPathUNICODE)
///////// Managing the list of the last 5 documents opened /////////
//Checks whether the document is already found in the list
nSubscript is int = ListSeek(COMBO_LastDocs,sFile,True)
IF nSubscript = -1 THEN
//It is not there
//If 5 documents are already found in the list of last 5 opened documents, delete the last one
IF COMBO_LastDocs..Occurrence = 5 THEN
ListDelete(COMBO_LastDocs,5)
END
ELSE
//It is already there
//Delete it from its former position and place it in 1st position
ListDelete(COMBO_LastDocs,nSubscript)
END
//Add the document that was opened in 1st position in the list
ListInsert(COMBO_LastDocs,sFile,1)
//Select it
ListSelectPlus(COMBO_LastDocs,1)
//And display this document
ExecuteProcess(COMBO_LastDocs,trtSelection)
try this code but
not open this pdf file password " 123"