... 919: Unexpected end of file in conditional started on line 20 Error E2139 c:\bcc730\include\windows\sdk\commdlg.h 933: Declaration missing ; Error E2139 c:\bcc730\include\windows\sdk\commdlg.h 934: Declaration missing ; Error E2139 c:\bcc730\include\windows\sdk\commdlg.h ...
... another question about "How does mod harbour work". On some occasions I get very useful error messages - like for example Error: LOCAL declaration follows executable statement operation: line:593 called from: HB_COMPILEFROMBUF, line: 0 called from: ..\source\exec.prg, EXECUTE, line: ...
... another question about "How does mod harbour work". On some occasions I get very useful error messages - like for example Error: LOCAL declaration follows executable statement operation: line:593 called from: HB_COMPILEFROMBUF, line: 0 called from: ..\source\exec.prg, EXECUTE, line: ...
... are similar in most programming languages. Some differences or "outdated" features of Clipper compared to modern languages might be: Declaration method: In modern languages, it's common to specify the data type when declaring (e.g., int, float, string), while in Clipper, using LOCAL ...
Saludos maestro y gracias por la sugerencia. I'm sorry I wasn't more specific. Consider this declaration: //-------------------------------------------------------------------------------HB_FUNC( TOCRFROMSCANNER ){ TOCRJOBINFO_EG JobInfo_EG; TOCRRESULTSEX_EG* ...
CreateMem() is not neccesary for private declaration on top main function: #include "Fivewin.ch"FUNCTION MAIN()// Note !!!!!! Try without that function call/* CREATEMEM( "MYTEST.MEM", "TEST", "Hello" ...
I tried to run the Load Free Image() function in my program. I received a message about the absence of the hLib variable. If you set STATIC hLib, the compilation message will appear - STATIC declaration follows executable statement
hi, i try to include some HMG HB_FUNC() but got Error E2140 .\\HB_FUNC.PRG 880: Declaration is not allowed here in function HB_FUN_HMG_ISFUNCDLL HB_FUNC ( HMG_ISFUNCDLL ) // HMG_IsFuncDLL ( pLibDLL | cLibName, cFuncName ) ---> Boolean{ HMODULE ...
... function in which you declared the variable. static is similar to JS variables declared globally (outside any function) have Global Scope. Static declaration in HARBOUR must be done before the main function. With TEMPLATE PARAMS you pass the variables to HTML/JS part *** hb_jsonenconde/hb_jsondecode ...
... I normally use is LOCAL. I don't use the type "FIELD" since I only use database objects (e.g. oCustomer:name), and thus no variable type declaration is needed for field names. You can also eliminate PUBLICs using a database object. I think you are missing out on a lot by not working with ...
test1.prg(72) Warning W0002 Ambiguous reference, assuming memvar 'LSERVER' Where the PUBLIC or PRIVATE variable is used you have to use the MEMVAR declaration or the M -> prefix: MEMVAR lServer or M -> lServer EMG ok but on my old clipper prg I assigned on "N"+ LTrim(Str(conta1)) ...
... variable declared inside a function is just like a LOCAL one but keeps its value till the end of the program (ie. its lifetime lasts from the declaration to the end of the program). A STATIC variable declared outside a function is visible in the whole file (the PRG) and its lifetime is like ...