LOOKUPSTR/de
From MCS Wiki AVR
Contents[hide] |
= (**COPIED FROM ENGLISH PAGE**) === Action
Returns a string from a table.
Syntax
var = LOOKUPSTR( value, label )
Remarks
Var |
The string returned |
Value |
A value with the index of the table. The index is zero-based. That is, 0 will return the first element of the table. |
Label |
The label where the data starts |
The index value can have a maximum value of 255.
See also
Example
$regfile = "m48def.dat" ' specify the used micro $crystal = 4000000 ' used crystal frequency $baud = 19200 ' use baud rate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Dim S As String * 8 , Idx As Byte Idx = 0 : S = Lookupstr(idx , Sdata) Print S 'will print 'This' End Sdata: Data "This" , "is" , "a test"
Languages | English • Deutsch |
---|