Jump to content



Photo
- - - - -

[Question] Will the Prog command break the loop?

Prog

Best Answer sentaro21 , 06 August 2019 - 11:12 AM

There is no problem. :)
"breaks" does not mean the stop of the loop of main-program.
After executing the sub-program, it returns to the main-program and continues loop.
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 161 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:Playing video games (especially Minecraft), calculators, programming (Casio Basic/Basic-like,Scratch), watching memes, IT research, mathematics...

  • Calculators:
    fx-50FHII
    fx-9860GII Emulator (expired)
    fx-CG50 Emulator (expired)

Posted 06 August 2019 - 07:28 AM

Hi,

 

I read the programming part in the manual of fx-9860GII and I saw one of the description of Prog command:

 

Even when this command is located inside of a loop, its execution immediately breaks the loop and launches the subroutine.

 

And I review fx-5800P manual at once and no information about this thing is found. If this is true, then my game program needs to be rewritten again. This is horrible. How do I fix it?

 

Regards,

CalcLoverHK


Edited by CalcLoverHK, 06 August 2019 - 07:31 AM.


#2 sentaro21

sentaro21

    Casio Freak

  • Members
  • PipPipPipPip
  • 254 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 06 August 2019 - 11:12 AM   Best Answer

There is no problem. :)
"breaks" does not mean the stop of the loop of main-program.
After executing the sub-program, it returns to the main-program and continues loop.

  • CalcLoverHK likes this

#3 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 161 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:Playing video games (especially Minecraft), calculators, programming (Casio Basic/Basic-like,Scratch), watching memes, IT research, mathematics...

  • Calculators:
    fx-50FHII
    fx-9860GII Emulator (expired)
    fx-CG50 Emulator (expired)

Posted 07 August 2019 - 02:44 AM

Thanks!


Edited by CalcLoverHK, 07 August 2019 - 02:45 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users