Hi Thomas, you have to create a connection for classic HyperFile. In the following example the files LOTEMP and IHTEMP use the classic HF-connection, the other files use the CSH-connection (MyConnection). Hope this helps. IF NOT HOpenConnection("HFConn","","","","",hAccessHF7) THEN oAlgProc:ErrorM(ErrorInfo()) END sBest=Upper(HListFile("","",hLstAll)) sHlp=ExtractString(sBest,firstRank,CR) WHILE sHlpEOT // HChangeConnection("*","MyConnection") // Alles in één keer is niet mogelijk, o.a. LOTEMP moet lokaal in temp-directory IF sHlp IN ("LOTEMP","IHTEMP") THEN HChangeConnection(sHlp,"HFConn") ELSE HChangeConnection(sHlp,"MyConnection") END sHlp=ExtractString(sBest,nextRank,CR) END |