LOOKUPSTR/de

From MCS Wiki AVR
< LOOKUPSTR(Difference between revisions)
Jump to: navigation, search
m (1 revision)
(Example)
 
(3 intermediate revisions by one user not shown)
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>
Line 15: Line 15:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Remarks</span> =
+
= <span class="f_Header">Anmerkungen</span> =
 
<div style="padding: 0px; margin: 0px 0px 0px 4px;">
 
<div style="padding: 0px; margin: 0px 0px 0px 4px;">
 
{| width="579" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="579" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
Line 23: Line 23:
  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
The string returned
+
Der zurückgegebene String.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 30: Line 30:
  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
A value with the index of the table. The index is zero-based. That is, 0 will return the first element of the table.
+
Ein Tabellenindex. Der Index ist null-basierend. 0 gibt das erste Element der Tabelle zurück.
 
+
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="12%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="12%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
Line 37: Line 36:
  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 504px; border: 1px solid rgb(0, 0, 0);" |  
The label where the data starts
+
Die Programmmarke an der die Daten beginnen.
  
 
|}
 
|}
Line 43: Line 42:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
The index value can have a maximum value of 255.
+
Maximalster Index ist 255.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 49: Line 48:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">See also</span> =
+
= <span class="f_Header">Siehe auch</span> =
  
 
[[LOOKUP]]&nbsp;,&nbsp;[[LOOKDOWN]]&nbsp;,&nbsp;[[DATA]]
 
[[LOOKUP]]&nbsp;,&nbsp;[[LOOKDOWN]]&nbsp;,&nbsp;[[DATA]]
Line 57: Line 56:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Example</span> =
+
= <span class="f_Header">Beispiel</span> =
  
 
<br/><source lang="bascomavr">
 
<br/><source lang="bascomavr">

Latest revision as of 23:46, 4 March 2013

Contents

Funktion

Gibt einen String aus einer Tabelle zurück.

 

 

Syntax

var = LOOKUPSTR( value, label )

 

 

Anmerkungen

Var

Der zurückgegebene String.

Value

Ein Tabellenindex. Der Index ist null-basierend. 0 gibt das erste Element der Tabelle zurück.

Label

Die Programmmarke an der die Daten beginnen.

 

Maximalster Index ist 255.

 

 

Siehe auch

LOOKUP , LOOKDOWN , DATA

 

 

Beispiel


$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