LOOKUPSTR/de

(Difference between revisions)
Jump to: navigation, search
m (1 revision)
((**COPIED FROM ENGLISH PAGE**) =)
Line 1: Line 1:
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
+
= <span class="f_Header">Funktion</span> =
  
Returns a string from a table.
+
Gibt einen String aus einer Tabelle zurück.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Revision as of 23:42, 4 March 2013

Contents

Funktion

Gibt einen String aus einer Tabelle zurück.

 

 

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  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language