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
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

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
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

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
  • 264 posts
  • Gender:Male
  • Location:Hong Kong
  • Interests:FPS games, C.Basic

  • Calculators:
    fx-50FHII (2019/1/30)
    fx-991ESPLUS-2 (2023/12/22)
    fx-3650PII (2022/1/15)
    fx-9750GIII (2020/6/13)
    fx-9860G Slim (2024/2/27)
    fx-9860GIISD (2023/3/27)
    fx-9860GIISD-2 (2024/2/5)
    fx-CG20CN (2023/2/12)
    fx-CG50 (2023/10/23)

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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users