Jump to content



Photo
* * * * - 1 votes

[Question] Workaround of Pause command

program casio basic fx-5800P workarounds

  • Please log in to reply
5 replies to this topic

#1 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 146 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 (trial)
    fx-CG50 Emulator (trial)

Posted 09 June 2019 - 07:04 AM

Hello guys,

Pause command is presented in fx-4850P or earlier calculators. However, it disappeared in fx-5800P.

I summerised the usage of it:

Pause(n), where n=0-9
Usage: output results - wait (n*0.5) seconds - continue
Example:
While A≠10:
   A+1➔A:
   Pause(2):
WhileEnd
It shows A value increasing by 1 per second until A=10.

Is there any workaround of it?

Thanks!

Edited by CalcLoverHK, 22 June 2019 - 07:06 AM.


#2 linux-user

linux-user

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 19 June 2019 - 11:46 PM

You could always just do a ton of calculations that will take the amount of time that you want to wait. That won't be very battery friendly, but it will work. You could even make a subroutine for it, with an equation that takes half a second to solve and then you just call it a bunch of times



#3 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 146 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 (trial)
    fx-CG50 Emulator (trial)

Posted 20 June 2019 - 01:45 AM

You could always just do a ton of calculations that will take the amount of time that you want to wait. That won't be very battery friendly, but it will work. You could even make a subroutine for it, with an equation that takes half a second to solve and then you just call it a bunch of times

Well, I have to try every calculations it has. But anyway thanks for giving suggestions!

Edited by CalcLoverHK, 20 June 2019 - 01:45 AM.


#4 Rhodie

Rhodie

    Casio Fan

  • Members
  • PipPip
  • 35 posts

  • Calculators:
    fx9750gii upgraded to fx9860G<br />EX995 Classwiz <br />

Posted 21 June 2019 - 12:23 AM

I used the Getkey function nested in a do... While loop that it waits into user activates a specific key to move on in the program.

Ideally, write this into a separate program and call it using
PROG "GETKEY"

#5 CalcLoverHK

CalcLoverHK

    Casio Freak

  • Members
  • PipPipPipPip
  • 146 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 (trial)
    fx-CG50 Emulator (trial)

Posted 21 June 2019 - 04:46 PM

I used the Getkey function nested in a do... While loop that it waits into user activates a specific key to move on in the program.
Ideally, write this into a separate program and call it using
PROG "GETKEY"

To be honest, I know Locate and Getkey can make some part of procedure of Pause command, but they can't be made as same as Pause command since Pause command can automatically move on after an exact time.

I think Locate/Getkey pair and Pause have their benefits:
Locate/Getkey: useful for user interactions
Pause: can wait for exact time, no need to press anything

Edited by CalcLoverHK, 21 June 2019 - 04:48 PM.


#6 Rhodie

Rhodie

    Casio Fan

  • Members
  • PipPip
  • 35 posts

  • Calculators:
    fx9750gii upgraded to fx9860G<br />EX995 Classwiz <br />

Posted 22 June 2019 - 06:36 PM

I see your point, yes.





Also tagged with one or more of these keywords: program, casio basic, fx-5800P, workarounds

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users