LOOKUPSTR/de

Aus MCS Wiki AVR
< LOOKUPSTR
Version vom 11. Februar 2013, 22:26 Uhr von Admin (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

= (**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

LOOKUP , LOOKDOWN , DATA

 

 

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  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache