Calculator Community > Grammer

Find the error in a beginner's program

(1/4) > >>

persalteas:
Hello, first I have a question: who programs with Grammer here ? Just Xeda ?


Then I would these programers to tell we where are my error(s) in this program:

It's a base converter from decimal. (it is supposed to be  ;D )

The display always starts with a value that I didn't ask for, and then the right value.


--- Code: ---:.0:Return→B
:ClrDraw
:Line(1,5,9,95,6
:Line(0,6,9,95,6
:Text(8,5,"Base Converter
:/Text(18,0,"Base ?
:DispGraph
:expr(Input →G
:/Text(18,0,"Valeur Décimale ?
:DispGraph
:expr(Input →AC'
:/Text(30,0,"= "
:Text('°AC',G
:DispGraph
:Repeat getkey
:End
:If =15
:Goto B
:ClrDraw:DispGraph
:Stop

--- End code ---

And then, I have some questions about the Input command:

- is there a mean to forbid other tokens than alphanumeric ? (like pressing a key [stat],[On] etc...)
- When should the "two-points" appear on the screen ? Before or after pressing the first key ?  (ow my syntax...  <_< )
- The text in the Input is displayed like with /Text(  , letter-by-letter. Is that normal ?

Sorunome:
Damn, grammer changed quite a lot since I last programmed with it O.o
And if these should be commented lines, they need a double-slash (//)

jsj795:
I believe Yeong also programs in grammer. I don't, so I can't really help you :(

Sorunome:
Yeah, Yeong is quite good at grammer :)

Hayleia:

--- Quote from: jsj795 on April 25, 2012, 08:29:15 am ---I believe Yeong also programs in grammer. I don't, so I can't really help you :(

--- End quote ---

--- Quote from: Sorunome on April 25, 2012, 09:25:06 am ---Yeah, Yeong is quite good at grammer :)

--- End quote ---
I believe he is also writing a tutorial (but in English), if you need help
(I am talking to persalteas, even if I quoted everyone but him :P)

Navigation

[0] Message Index

[#] Next page

Go to full version