Casio Kingdom - The Casio calculator resource site            
Home Downloads Forums Unread Posts Hall of Fame
Your Account Search Tutorials Wiki
Staff
 
Resources

Downloads

[ Newest | Hottest ]

1: Rock Paper Scissorsss
    [Hits: 4]
2: Pokemon NEC
    [Hits: 198]
3: Classic Game Invincible MAZE v2.1
    [Hits: 420]
4: DELTA<->ESTRELLA
    [Hits: 103]
5: FOBONACCI
    [Hits: 135]
6: Chess v2.0
    [Hits: 273]
7: Snake Revolution
    [Hits: 433]
8: INFIX POSTFIX
    [Hits: 227]
9: UNTPOST
    [Hits: 212]
10: Organic Chemistry notes
    [Hits: 403]

[ Add new | Rank all ]
Search

Advanced Search

Casio Kingdom - The Casio calculator resource site: Forums

Casio Kingdom :: View topic - GO Error

Forum FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in

View next topic
View previous topic
Post new topic Reply to topic  Casio Kingdom Forum Index » General
Author Message
Emell
Peasant
Peasant


Joined: Dec 27, 2009
Posts: 12

PostPosted: Tue Feb 09, 2010 4:47 am Reply with quote

I'm writing what should be a very simple program for my fx-9860G. I'm creating a menu with F-key selections, then using getkey to 'Goto n' command to jump to Lbl n. I keep getting a 'GO ERROR' when I press one of the F-keys. The code looks generally like this (carriage return symbol not shown):

Lbl 0
<input parameters routine>
ClrText
Lbl 1
<display menu routine>
Lbl 2
Do
Getkey→G
LpWhile G=0
G=79=>Goto 3
G=69=>Goto 4
G=59=>Goto 0
G=49=>Goto 5
Goto 2
Lbl 3
<command routine>
Lbl 4
<command routine>
Lbl 5
Stop

The code works for all F-keys except F2 (69), which returns the following error message:

GO ERROR
Press:[EXIT]

When I press EXIT, the screen displays the code and the cursor is sitting just to the right of 'Goto 4.'

Can anyone explain why I get this error message and what the possible conditions that cause it?
View user's profile Send private message
jack12344
Peasant
Peasant


Joined: Feb 11, 2010
Posts: 4

PostPosted: Thu Feb 11, 2010 9:05 pm Reply with quote

Hi,I've just checked your program command, and there's nothing wrong with it.Maybe there is an "Goto" command in your <command routine>,you can just search fot it.
If you checked there is no extra "Goto" command in your <command routine> and you don't mind, you'd better rewrite it again.
View user's profile Send private message
Distortion
Team Kingdom
Team Kingdom


Joined: Oct 17, 2007
Posts: 581
Location: The Netherlands

PostPosted: Fri Feb 12, 2010 1:01 am Reply with quote

You haven't properly closed a Statement (like If or While) in the command routine after Lbl 3.

_________________
|Distortion|
View user's profile Send private message
Emell
Peasant
Peasant


Joined: Dec 27, 2009
Posts: 12

PostPosted: Fri Feb 12, 2010 4:01 am Reply with quote

You were right about the closed statement. I had used an If...then...else command without an IfEnd in my Lbl 3 command routine. I fixed that, now I get a 'Syntax Error' message at the same point in the code where I got the 'Go Error' message.

It's a simple Quadratic Equation Solver. I know there are Quadratic programs available for downloading, which I have, but I really want to use my own.

Is there some way I can send you the entire program listing (50 lines) and examine the code for me?
View user's profile Send private message
Dysprosium
Baron
Baron


Joined: Sep 30, 2007
Posts: 251
Location: HEY LOOK BEHIND YOU

PostPosted: Fri Feb 12, 2010 4:18 am Reply with quote

Distortion wrote:
You haven't properly closed a Statement (like If or While) in the command routine after Lbl 3.

Wow, nice... was that a shot in the dark or has it happened to you before?

@Emell PM him the .g1m file if you don't want the whole world to see it.

_________________
Twitter
View user's profile Send private message
Emell
Peasant
Peasant


Joined: Dec 27, 2009
Posts: 12

PostPosted: Sat Feb 13, 2010 5:59 am Reply with quote

I tried to PM my program file. I tried attaching both a .g1m and a .g2r file, but I keep getting this message:

'The Extension .g1m is not allowed.'

and...

'The Extension .g2r is not allowed.'

So how do I attach my program file here?
View user's profile Send private message
Dysprosium
Baron
Baron


Joined: Sep 30, 2007
Posts: 251
Location: HEY LOOK BEHIND YOU

PostPosted: Sat Feb 13, 2010 6:05 am Reply with quote

.zip it first.

_________________
Twitter
View user's profile Send private message
Emell
Peasant
Peasant


Joined: Dec 27, 2009
Posts: 12

PostPosted: Sun Feb 14, 2010 6:34 am Reply with quote

Thanks for the tips. You all have been very helpful. I zipped both the .g1m and the .g2r versions of my program. Here is the file.

When the program is run, you are prompted to enter the standard quadratic parameters, a, b and c. Then a Select Function menu will be displayed. All selections work fine except F2. When F2 is pressed, I get a 'Syntax Error' message, then, when 'EXIT' is pressed, the cursor is at the end of the 'G=69=>Goto 4' command (69 is the getkey code for the F2 key). BTW, I tried using 'If G=69:then Goto 4:IfEnd.' Same thing.


Parabola.zip
 Description:

Download
 Filename:  Parabola.zip
 Filesize:  1.19 KB
 Downloaded:  164 Time(s)

View user's profile Send private message
aapman55
Baron
Baron


Joined: Aug 25, 2008
Posts: 142
Location: Nederland

PostPosted: Sun Feb 14, 2010 6:54 pm Reply with quote

you forgot to put the " at the end of locate X,Y,"........."
View user's profile Send private message
Emell
Peasant
Peasant


Joined: Dec 27, 2009
Posts: 12

PostPosted: Mon Feb 15, 2010 7:47 am Reply with quote

Yahoo! That fixed it. Thank you, aapman55. You da man!! Very Happy
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
Forums ©

Hard Disk Recovery
Don’t jump out the window! Hard disk recovery can be done by the right people!

Data Recovery Laptop
Get back the data you lost on your laptop. Ask the professionals to help.





Casio Kingdom 2003-2009 Sean Tan
casiokingdom.org | admin@casiokingdom.org