Input/Output Commands (I/O). Casio FX-9750G

Add to My manuals
440 Pages

advertisement

Input/Output Commands (I/O). Casio FX-9750G | Manualzz

19 - 11

Command Reference k Input/Output Commands (I/O)

Getkey

Function: This command returns the code that corresponds to the last key pressed.

Syntax: Getkey

_

Description:

1. This command returns the code that corresponds to the last key pressed.

73

72

71

79 69 59 49 39 29

78

77

76

68

67

66

58

57

56

48

47

46

75

74

65

64

55

54

45

44

35

38

28

37

27

36 26

25

63

62

61

53

52

51

43

42

41

33

32

31

2. A value of zero is returned if no key was pressed previous to executing this command.

3. This command can be used inside of a loop.

Locate

Function: This command displays alpha-numeric characters at a specific location on the text screen.

Syntax:

Locate <column number>, <line number>, <value>

Locate <column number>, <line number>, <variable name>

Locate <column number>, <line number>, ”<string>”

[Example] Locate 1, 1, ”AB” _

Parameters:

• line number: number from 1 to 7

• column number: number from 1 to 21

• value: numeric value

• variable name: A to Z

• string: character string

350

Command Reference

19 - 11

Description:

1. This command displays values (including variable contents) or text at a specific location on the text screen.

2. The row is designated by a value from 1 to 7, which the column is designed by a value from 1 to 21.

(1, 1)

→ ←

(21, 1)

(1, 7)

→ ←

(21, 7)

Example: Cls

_

Locate 7, 1, ”CASIO FX”

This program displays the text “CASIO FX” in the center of the screen.

• In some cases, the ClrText command should be executed before running the above program.

Receive (

Function: This command receives data from an external device.

Syntax: Receive (<data>)

Description:

1. This command receives data from an external device.

2. The following types of data can be received by this command.

• Individual values assigned to variables

• Matrix data (all values - individual values cannot be specified)

• List data (all values - individual values cannot be specified)

• Picture data

Send (

Function: This command sends data to an external device.

Syntax: Send (<data>)

Description:

1. This command sends data to an external device.

2. The following types of data can be sent by this command.

• Individual values assigned to variables

• Matrix data (all values - individual values cannot be specified)

• List data (all values - individual values cannot be specified)

351

advertisement

Related manuals

Download PDF

advertisement

Table of contents