F.2. examples of valid strings and invalid strings – Intermate 100 User Manual

Page 240

Advertising
background image

Intermate100 and Intermate101 Print Server Administration Manual

240

String Syntax: Examples of Valid Strings and Invalid Strings

Note:

A pair of double quotes "" cannot be written as a
normal string, i.e. within quotes. They have to be
written with their decimal or hexadecimal number:

34,34

or

/22,/22

.

F.2.

Examples of Valid Strings and Invalid Strings

Valid Strings

Valid Strings (continued)

"abc",/41

65,/41

"abc",65,/41

/41,65

"abc","def"

/41,/1B,"a"

"abcdef"

/41,/1b,"a"

"abc",65,66,32,/1B,/1B,"def"

"/1B,65,abc,def,127"

27,65

/1B,34,/65

Invalid Strings

Why

abc,65

- quotes are missing around "abc"

/41,abc

- quotes are missing around "abc"

/41abc

- a comma is left out and quotes are missing

65,"abc"/1B

- a comma is left out

"abcdef",/1B,65,"ahg

- end-quote is missing

"abc,/1B,65

- whole string could be considered a string, but
isn’t because the end-quote is missing

1B,65

- slash before hexadecimal number is missing

65,66,ab"

- start-quote is missing

/1B,,65

- two consecutive commas

Advertising