Section 7. Installation
'Program
BeginProg
Scan
(1,Sec,0,0)
'Assign strings to String variables
Word(1) = "Good"
Word(2) = "morning"
Word(3) = "Dave"
Word(4) = "I'm"
Word(5) = "sorry"
Word(6) = "afraid"
Word(7) = "I"
Word(8) = "can't"
Word(9) = "do"
Word(10) = "that"
Word(11) = " "
Word(12) = ","
Word(13) = ";"
Word(14) = "."
Word(15) = Chr(34)
'Assign integers to Long variables
PhraseNum(1) = 1
PhraseNum(2) = 2
'Concatenate string "1. Good morning, Dave"
Phrase(1) = PhraseNum(1)+Word(14)+Word(11)&Word(15)&Word(1)&Word(11)&Word(2)& _
Word(12)&Word(11)&Word(3)&Word(14)&Word(15)
'Concatenate string "2. I'm afraid I can't do that, Dave."
Phrase(2) = PhraseNum(2)+Word(14)&Word(11)&Word(15)&Word(4)&Word(11)&Word(6)&Word(11)& _
Word(7)&Word(11)&Word(8)&Word(11)&Word(9)&Word(11)&Word(10)&Word(12)& _
Word(11)&Word(3)&Word(14)&Word(15)
CallTable
HAL
NextScan
EndProg
7.8.4.16 Programming Access to Data Tables
A data table is a memory location where data records are stored. Sometimes, the
stored data needs to be used in the CRBasic program. For example, a program
can be written to retrieve the average temperature of the last five days for further
processing. CRBasic has syntax provisions facilitating access to these table data,
or to meta data relating to the data table. Except when using the
GetRecord()
instruction (
Data Table Access and Management
(p. 592)
), the syntax is entered
directly into the CRBasic program through a variable name. The general form is:
TableName.FieldName_Prc(Fieldname Index, Records Back)
Where:
•
TableName
is the name of the data table.
•
FieldName
is the name of the variable from which the processed value is
derived.
•
Prc
is the abbreviation of the name of the data process used. See table
Data
Process Abbreviations
(p. 168)
for a complete list of these abbreviations. This is
not needed for values from
Status
or
Public
tables.
167
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......