loDir | Object | Objekt s informacema pro zobrazení dialogu |
LOCAL loDir,lcDir loDir=CREATEOBJECT("_GetDirEx") loDir.DefaultDir="c:\" && Default folder loDir.btnOK="Select" && New caption of button "OK" IF GetDirEx(loDir) This.Parent.txtDefaultPath.Value = loDir.OutPutDir && Get selected folder ENDIF
lcTag2 | String | Binární informace API struktury DEVMODE | |
@ | loDM | Object | Objekt pro uložení informací |
LOCAL loo,lcPom lcPom=TAG2 loo=CREATEOBJECT("_DeviceMode") =ResolveTAG2(lcPom,loo) && Read structure from string ?loo.dmDeviceName ?loo.dmSpecVersion ?loo.dmDriverVersion ?loo.dmSize ?loo.dmDriverExtra ?loo.dmFields
lcPrinterName | String | Název tiskárny | |
liDMOrientation | Number | Orientace papíru |
LOCAL liOldPO liOldPO=SetPOrient(SET("PRINTER",2),2) && Set New Paper Orientation -> icrement for API * Print =SetPOrient(SET("PRINTER",2),liOldPO) && Set old Paper Orientation
lcPrinterName | String | Název tiskárny | |
@ | liPStatus | Number | Status tiskárny |
@ | liJStatus | Number | Status jobu |
LOCAL lcPName,liPStatus,liJStatus,liErr lcPName=SET("PRINTER",2) STORE 0 TO liPStatus,liJStatus liErr=GetPStatus(lcPName,@liPStatus,@liJStatus) IF liErr=1 ?liPStatus ?liJStatus ENDIF
loSE | Object | Objekt s informacema pro otevření souboru |
LOCAL lcFile,liWFS,lcPom,loSE lcFile="c:\temp\test.txt" DECLARE INTEGER WaitForSingleObject IN kernel32.DLL INTEGER hHandle, INTEGER dwMilliseconds DECLARE INTEGER CloseHandle IN kernel32.DLL INTEGER hObject * Return code from WaitForSingleObject() if it timed out. #DEFINE WAIT_TIMEOUT 0x00000102 loSE=CREATEOBJECT("_ShellExecuteEx") loSE.fMask=SEE_MASK_NOCLOSEPROCESS loSE.nShow=1 loSE.Verb="open" loSE.File='"'+lcFile+'"' IF ShellExecuteExEx(loSEI) && Open txt file liWFS=WAIT_TIMEOUT DO WHILE liWFS= WAIT_TIMEOUT && Wait to proccess is running liWFS=WaitForSingleObject(loSE.hProcess, 250 ) ENDDO =CloseHandle(loSE.hProcess) && Close handle ENDIF
loGF | Object | Objekt s informacema pro zobrazení dialogu |
LOCAL lcFile,loo loo=CREATEOBJECT("_GetFileEx") loo.AllowMultiSelect=.F. loo.Explorer=.T. loo.EnableSizing=.T. loo.InitialDir="c:\temp\" loo.File="Test.txt" loo.Title="Select text file" loo.Filter="TXT file"+CHR(0)+"*.txt"+CHR(0) loo.aFName="paFiles" && Name of Output Array IF GetFileEx(loo) AND loo.Err=0 lcFile = loo.SelectedFolder+paFiles(1) ENDIF RELE (loo.aFName) && Release Output Array
loPF | Object | Objekt s informacema pro zobrazení dialogu |
LOCAL lcFile,loo loo=CREATEOBJECT("_GetFileEx") loo.AllowMultiSelect=.F. loo.Filter="TXT file"+CHR(0)+"*.txt"+CHR(0) loo.Explorer=.T. loo.EnableSizing=.T. loo.Title="Save as TXT file" loo.aFName="paFiles" && Name of Output Array loo.File="test.txt" loo.InitialDir="c:\temp\" IF PutFileEx(loo) AND loo.Err=0 lcFile=loo.SelectedFolder+paFiles(1) ENDIF RELE (loo.aFName) && Release Output Array