MID/de

From MCS Wiki AVR
< MID(Difference between revisions)
Jump to: navigation, search
(Created page with "= <span class="f_Header">Action</span> = The MID function returns part of a string (a sub string). The MID statement replaces part of a string variable with another string. ...")
 
(Funktion)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
+
= <span class="f_Header">Funktion</span> =
  
The MID function returns part of a string (a sub string).
+
Die MID Funktion gibt einen Teil einer Zeichenkette zurück.
  
The MID statement replaces part of a string variable with another string.
+
Der MID Befehl ersetzt einen Teil einer Zeichenketten-Variablen durch eine andere Zeichenkette.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 19: Line 19:
 
<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="488" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="488" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
Line 27: Line 27:
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
The string that is assigned.
+
Ziel-Zeichenkette.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="16%" style="width: 74px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="16%" style="width: 74px; border: 1px solid rgb(0, 0, 0);" |  
Var1
+
var1
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
The source string.
+
Quell-Zeichenkette.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 41: Line 41:
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
The starting position.
+
Startposition.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 48: Line 48:
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
The number of characters to get/set.
+
Anzahl von Zeichen, die kopiert/ersetzt werden sollen.
  
 
|}
 
|}
Line 56: Line 56:
 
<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> =
  
 
[[LEFT]]&nbsp;,&nbsp;[[RIGHT]]
 
[[LEFT]]&nbsp;,&nbsp;[[RIGHT]]
Line 64: Line 64:
 
<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 01:16, 27 February 2013

Contents

Funktion

Die MID Funktion gibt einen Teil einer Zeichenkette zurück.

Der MID Befehl ersetzt einen Teil einer Zeichenketten-Variablen durch eine andere Zeichenkette.

 

 

Syntax

var = MID(var1 ,st [, l] )

MID(var ,st [, l] ) = var1

 

 

Anmerkungen

var

Ziel-Zeichenkette.

var1

Quell-Zeichenkette.

st

Startposition.

l

Anzahl von Zeichen, die kopiert/ersetzt werden sollen.

 

 

Siehe auch

LEFT , RIGHT

 

 

Beispiel


Dim S As String * 15 , Z As String * 15
S ="ABCDEFG"
Z = Left(s , 5)
Print Z 'ABCDE
Z = Right(s , 3) : Print Z
Z = Mid(s , 2 , 3) : Print Z
End

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language