Re: WG: [Hbasic-userinfo] Simple Question
Status: Beta
Brought to you by:
mengels
From: <mar...@t-...> - 2003-10-17 18:03:59
|
> > >-----Ursprüngliche Nachricht----- >Von: Rodrigo do Valle Chagas Diniz [mailto:Rd...@br...] >Gesendet: Montag, 13. Oktober 2003 16:34 >An: hba...@li... >Betreff: [Hbasic-userinfo] Simple Question >Wichtigkeit: Hoch > > >How can I run a program made with hbasic outside the IDE? >Is there any equivalent to the form_load event? >I am using the latest version of hBasic the instalation went fine. > >Thanks in advance for any answer. > >Rodrigo do Valle Chagas Diniz >Analista/programador ProjetoTi >Tel: (0xx21) 3804-2000 r.3021 > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >SourceForge.net hosts over 70,000 Open Source Projects. >See the people who have HELPED US provide better services: >Click here: http://sourceforge.net/supporters.php >_______________________________________________ >Hbasic-userinfo mailing list >Hba...@li... >https://lists.sourceforge.net/lists/listinfo/hbasic-userinfo > > > Hello Rodrigo, if you want to start a HBasic program stored in a file xx.bas without starting the HBasic IDE you can use the command line option hbasic -s xx.bas This will start the program in the interpreter and will therefore start parts of the runtime environment of HBasic. Another idea would be to use the compiler function that I have inserted into the default HBasic compilation again in version 0.9.9c. This will create a program (/usr/local/hbasic/compiler/hbasic.exe) that may be started outside of the HBasic IDE without starting HBasic. This compiler still has some bugs which I want to fix in the upcoming releases of HBasic. The newest version of HBasic may also create rpm packages to distribute the compiled program. Please have a look at the changelog of the HBasic homepage for version 0.9.9c. You may use a form_load subroutine definition which will be started when loading a form in HBasic. I have appended a short example program which needs the newest version 0.9.9c of HBasic to be executed (Because I have changed the format of a file). This example simply initializes a variable to show that the form_load function has been executed. Marcus Engels |