Jump to content



Photo
- - - - -

Menu Trouble


  • Please log in to reply
8 replies to this topic

#1 Nogoodnamesleft

Nogoodnamesleft

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 19 January 2011 - 04:48 PM

Hello all,

I'm a real newb when it comes to programming... So my question is (probably) really newbie to you ;) .
I just discovered the ''menu'' function and I was just trying it out when I ran into a problem...

The code:
Menu ''Choose a dice'',''6-sided'',1,''Exit'',2[the exe arrow]
Lbl 1[the exe arrow]
Intg (6Ran# +1)[the exe arrow]
Lbl 2[the exe arrow]
''Done''

When I run the code, the menu pops up, only when I select the ''6-sided'' label in the menu, it doesn't stop after giving the the random number, but heads straight on to saying "Done''.
How do I solve this? As I said before, this is just a test to see how this function works so I can use it properly in bigger programs, so if there is a different code for more menu-options I would like to have that too, please.

Now all that remains for me is to wait and hope for someone to reply ;) .

Oh, by the way, I have an fx-9860GII (with no SD).
Not sure if it matters, but just making sure :) .

#2 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 19 January 2011 - 06:56 PM

Place the small triangle cammand after "Intg (6Ran# +1)" to pause execution.
By the way, wrong forum.

#3 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 19 January 2011 - 06:57 PM

cammand -> command

#4 Nogoodnamesleft

Nogoodnamesleft

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 19 January 2011 - 07:31 PM

Okay, thanks :lol: . And, sorry, lol :unsure: .

I actually found a better way to do this and decided to post it since it might help other people ;).

Menu ''Choose a dice'',''6-sided'',1,''Exit'',2 ->
Lbl 1 ->
Intg (6Ran# +1) ->
Stop ->
Lbl 2 ->
''Done'' ->
Stop ->

Now you don't get the - Disp - message anymore :).

Edited by Nogoodnamesleft, 20 January 2011 - 05:48 PM.


#5 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 15 April 2011 - 09:30 PM

A nice alternative to the ?triangle? is:

Do :newline:
Getkey :arrow: G :newline:
LpWhile G=0 :newline:

This will not display that annoying -Disp- mark.

Come on CASIO!!! How does having that -Disp- mark help, anyway? :rant:

Suggestion for UCF admin: triangle smily?

Edited by mfischer, 15 April 2011 - 09:32 PM.


#6 Nogoodnamesleft

Nogoodnamesleft

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 15 April 2011 - 09:35 PM

A nice alternative to the ?triangle? is:

Do :newline:
Getkey :arrow: G :newline:
LpWhile G=0 :newline:

This will not display that annoying -Disp- mark.

Come on CASIO!!! How does having that -Disp- mark help, anyway? :rant:

Suggestion for UCF admin: triangle smily?

Yeah ^_^.
I hate that thing :P.

True -_-, that thing is total bullshit :pyth:.

triangle smiley? :P Why? :P

#7 Guest_Guest9000_*

Guest_Guest9000_*
  • Guests

Posted 18 April 2011 - 09:40 PM

Lbl0
ClrText
"SIDES"?→C
Frac C !=0 =>Goto 0
C=0 =>Goto 0
Lbl1
ClrText
"ROLLS"?→D
Frac D!=0=>Goto 1
D=0=>Goto 1
0→B
ClrList
Seq(X,X,1,D,1)→List 1
While B != D
B+1→B
1→E
While E=1
Ran#→E
WhileEnd
Intg (EC+1)→ List 1[B]
WhileEnd
List 1

This is on a fx-7450g it works well. I need to get multiple dice working but with only 6 lists it kinda sucks.

#8 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 19 April 2011 - 03:21 PM

triangle smiley? :P Why? :P

We have a newline smily :newline: , and an arrow smily :arrow: , so why not a small triangle smily?

Edited by mfischer, 19 April 2011 - 03:22 PM.


#9 Nogoodnamesleft

Nogoodnamesleft

    Newbie

  • Members
  • Pip
  • 13 posts

Posted 22 April 2011 - 05:21 PM

We have a newline smily :newline: , and an arrow smily :arrow: , so why not a small triangle smily?


Ah, I see. You're right... Why isn't there one?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users