Section 7. Installation
330
BeginProg
Scan
(1,Sec,0,0)
I = 0
'Set I to zero
'Data type of the following destination variables is Float
'because Num() array is declared As Float.
I += 1
'Increment I by 1 to clock through sequential elements of the Num() array
'As shown in the following expression, if all parameter are numbers, the result
'of using '+' is a sum of the numbers:
Num(I) = 2 + 3 + 4
'= 9
'Following are examples of using '+' and '*' when one or more parameters are strings.
'Parameters are processed in the standard order of operations. In the order of
'operation, once a string or an '&' is processed, all following parameters will
'be processed (concatenated) as strings:
I += 1
Num(I) = "1" + 2 + 3 + 4
'= 1234
I += 1
Num(I) = 1 + "2" + 3 + 4
'= 1234
I += 1
Num(I) = 1 + 2 + "3" + 4
'= 334
I += 1
Num(I) = 1 + 2 + 3 + "4"
'= 64
I += 1
Num(I) = 1 + 2 + "3" + 4 + 5 + "6"
'= 33456
I += 1
Num(I) = 1 + 2 + "3" + (4 + 5) + "6"
'= 3396
I += 1
Num(I) = 1 + 2 + "3" + 4 * 5 + "6"
'= 33206
I += 1
Num(I) = 1 & 2 + 3 + 4
'= 1234
I += 1
Num(I) = 1 + 2 + 3 & 4
'= 64
'If a non-numeric string is attempted to be processed into a float destination,
'operations are truncated at that point
I += 1
Num(I) = 1 + 2 + "hey" + 4 + 5 + "6"
'= 3
I += 1
Num(I) = 1 + 2 + "hey" + (4 + 5) + "6"
'= 3
'The same rules apply when the destination is of data type String, except in the
'case wherein a non-numeric string is encountered as follows. Data type of the
'following destination variables is String because Str() array is declared As String.
I = 0
I += 1
Str(I) = 1 + 2 + "hey" + 4 + 5 + "6"
'= 3hey456
I += 1
Str(I) = 1 + 2 + "hey" + (4 + 5) + "6"
'= 3hey96
NextScan
EndProg
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......