SPACE/de

From MCS Wiki AVR
< SPACE(Difference between revisions)
Jump to: navigation, search
(See also)
(Example)
 
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