SPACE/de

From MCS Wiki AVR
< SPACE(Difference between revisions)
Jump to: navigation, search
((**COPIED FROM ENGLISH PAGE**) =)
(Example)
 
(3 intermediate revisions by one user not shown)
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="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;"
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="13%" style="width: 60px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="13%" style="width: 60px; border: 1px solid rgb(0, 0, 0);" |  
X
+
x
  
 
| valign="top" width="100%" style="width: 419px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 419px; border: 1px solid rgb(0, 0, 0);" |  
The number of spaces.
+
Anzahl der Leerzeichen.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="13%" style="width: 60px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="13%" style="width: 60px; border: 1px solid rgb(0, 0, 0);" |  
Var
+
var
  
 
| valign="top" width="100%" style="width: 419px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 419px; border: 1px solid rgb(0, 0, 0);" |  
The string that is assigned.
+
Zeichenkette der zugewiesen wird.
  
 
|}
 
|}
Line 36: Line 36:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
Using 0 for x will result in an empty string.
+
Die Benutzung von 0 für x ergibt eine leere Zeichenkette.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 42: Line 42:
 
<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> =
  
 
[[STRING]]&nbsp;,&nbsp;[[SPC]]
 
[[STRING]]&nbsp;,&nbsp;[[SPC]]
Line 50: Line 50:
 
<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">
Line 63: Line 63:
 
   
 
   
 
$regfile = "m48def.dat" ' specify the used micro
 
$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
+
$crystal = 8000000 ' Taktfrequenz
$baud = 19200 ' use baud rate
+
$baud = 19200 ' Baudrate
 
$hwstack = 32 ' default use 32 for the hardware stack
 
$hwstack = 32 ' default use 32 for the hardware stack
 
$swstack = 40 ' default use 10 for the SW stack
 
$swstack = 40 ' default use 10 for the SW stack

Latest revision as of 01:29, 1 March 2013

Contents

Funktion

Gibt eine Zeichenkette zurück, die aus Leerzeichen besteht.

 

 

Syntax

var = SPACE(x)

 

 

Anmerkungen

x

Anzahl der Leerzeichen.

var

Zeichenkette der zugewiesen wird.

 

Die Benutzung von 0 für x ergibt eine leere Zeichenkette.

 

 

Siehe auch

STRING , SPC

 

 

Beispiel


'-------------------------------------------------------------------------------
'copyright : (c) 1995-2005, MCS Electronics
'micro : Mega48
'suited for demo : yes
'commercial addon needed : no
'purpose : demonstrates DEG2RAD function
 
'-------------------------------------------------------------------------------
 
$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' Taktfrequenz
$baud = 19200 ' Baudrate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 40 ' default use 10 for the SW stack
$framesize = 40 ' default use 40 for the frame space
 
 
Dim S As String * 15 , Z As String * 15
S = Space(5)
Print " {" ; S ; " }" '{ }
 
Dim A As Byte
A = 3
S = Space(a)
End

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