1. Programs that do nothing at all
I have recently transferred from QBasic to Euphoria, and have been a little
disappointed that it did not live up to the claims in the readme. Firstly,
the basics of ED do not live up to those in QBasic (although I have been
informed that someone has corrected this) and secondly I found it harder than
necessary to learn. I have programmed in Dr. Logo, Xtal Basic, QBasic,
JavaScript, Java but have to conclude that the ease of learning would only
apply to somebody moving from PASCAL.
However, there is nothing more annoying than a programme that does
ABSOLOUTELY NOTHING WHATSOEVER when it blatantly should at least RUN.
Attached (or included as files seem to end up on this list) is my
extra-extra-basic Word Processor procedure and associated functions. This
programme does ZILCH but is supposed to be a building block for an HTML
editor that I hope to make. If any of you gurus out there could inform me of
why I cannot get any life out of it whatever I try then please show me up !
Because I am stuck.
Thanks
Daniel Johnson
2. Re: Programs that do nothing at all
- Posted by Robert Craig <rds at CLASSIC.MSN.COM>
Sep 19, 1997
-
Last edited Sep 20, 1997
Daniel Johnson writes:
> Firstly,
> the basics of ED do not live up to those in QBasic (although I have been
> informed that someone has corrected this)
Download David Cuny's text-mode GUI and editor from the Recent Contributions
page.
Run bind on his main ee.ex file to make a .exe file for his editor.
Although he refers to it as version 0.84b, it is really quite
complete and solid.
There is no *need* to use any particular editor with Euphoria.
I personally still use ed, because I'm so used to it, and because
I find that using a mouse while editing slows me down.
ed is somewhat lacking in the GUI aspect however, and makes
no attempt to be compatible with the QBasic editor.
> However, there is nothing more annoying than a programme that does
> ABSOLOUTELY NOTHING WHATSOEVER when it blatantly should at least RUN
You have probably forgotten to call your main procedure.
In Euphoria you *must* have a "top-level" statement that
calls your main procedure (or function) or it will not execute.
In C, the function called "main" is called automatically
to start a C program running. Not so, in Euphoria. Do this:
procedure my_main_procedure()
? 2 + 2
end procedure
my_main_procedure() -- required!
If that is not the case, then insert:
with trace
trace(1)
as the first two lines in your main .ex file.
This will run your program in trace mode.
> Attached (or included as files seem to end up on this list) is my
> extra-extra-basic Word Processor procedure and associated functions
I didn't see any attached code.
Regards,
Rob Craig
Rapid Deployment Software