I understand that there is no need to compile BASIC programs when using QPC2 (SMSQ) - the SBASIC code can be EXEC'd without TURBO or QLIBERATOR.

Do I take this to mean that I just "Ex win1_program_bas" ? And if it's as easy as that, what are the benefits and drawbacks of doing this?

In the meantime, thanks a million for your suggestions.

Regards to all,

John Gilpin.
As a start point, make sure you are familiar with the "Executing SBASIC Programs" section of the SMSQ/E user guide (page 27 in the admittedly old version I have).

But in many cases it's as simple as executing the SBASIC program: EX win1_PROGRAM_bas and once that program finishes typing in a QUIT command to close the SBASIC job and return to the original SBASIC (unless your program closes channel #0 as its last act in which case the SBASIC might decide to die cleanly and that's that IIRC)

When you EX a basic program which goes into a new incarnation of SBASIC (i.e. a separate job to the original SBASIC) this is called a "daughter job" (understanding this helps you understand some of the explanations in the manual).

However...

Remember that the position of the windows will usually overlap the original windows unless your program changes it. There are various options to control size and position of the windows.

Make sure your program has a filename ending with _bas. SBASIC prefers this. Or _sav if you saved it with QSAVE.

Some programs use features or extensions which rely on the job details being 0,0 (the numbers listed by the JOBS command), i.e. will only work in the "main" SBASIC. The fix for some of these is trivial (don't use them), while others need some individual attention.

You may get problems with the windows as you have already discussed. Probably best to seek help on these as you find them.




_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to