K commandes d’entrée/sortie (i/o) – Casio GRAPH 100+ Manuel d'utilisation

Page 355

Advertising
background image

19990401

8-5-15

Guide des commandes

k Commandes d’entrée/sortie (I/O)

Getkey

Fonction: Cette commande se comporte comme une variable qui prend la valeur
correspondant au code de la dernière touche activée.

Syntaxe: Getkey

Exemple: Se brancher sur les Lbl 1, Lbl 2 ou Lbl

3, dans une boucle en appuyant sur
les touches 1, 2 ou 3

Lbl 0

If Getkey = 72

Then Goto 1

IfEnd

If Getkey = 62

Then Goto 2

IfEnd

If Getkey = 52

Then Goto 3

IfEnd

Goto 0

• La boucle tournera sur elle-même tant qu’il n’y

aura pas d’appui sur une touche.

64

79

78

68

58

48

77

67

57

47

76

66

56

46

75

74

54

44

63

73

53

43

33

62

72

52

42

32

61

71

51

41

31

65

55

45

36

35

26

25

69

59

49

39

29

28

38

27

37

Advertising