winston19842005 wrote:
>
> On 1/6/08 10:44 AM, in article 4780F760.4EB1@[EMAIL PROTECTED]
"Matthieu Benoit"
> <matthieu.benoit@[EMAIL PROTECTED]
> wrote:
>
> > Matthieu Benoit wrote:
> >>
> >> Hello,
> >> Could you help me to compile this basic program
> >> with QBASIC
> >> http://matthieu.benoit.free.fr/sources/calcd.bas
> >> I have an error at the put function saying
> >> expected variable=expression
> >> Thank you for your help,
> >> Matthieu
> > it seems that the function
> > PUT$ exists as described here :
> > http://www.powerbasic.com/sup****t/help/pbcc/put_statement1.htm
> > but I don't know why I can't compile the program with quick basic
> > thank you for your help,
>
> Well, I do not recall a put$ in "quick basic". What version? QuickBasic
4.5?
> or Qbasic?
>
> Position your cursor under the "put" and hit the help key (cannot
remember,
> is it F1?) to see if your version has put$. Otherwise, you will need to
> replace "put$" with "put", with perhaps some extra code.
I 've finally succeeded to compile the program with
freebasic http://sourceforge.net/projects/fbc/
fbc -lang qb calcd.bas
and replacing the put $ instruction by put #1,,chr$(oct) (added a comma)
the program seems to be working
Thanks for your help
Matthieu


|