STRING/de
(Difference between revisions)
m (1 revision) |
(→(**COPIED FROM ENGLISH PAGE**) =) |
||
| Line 1: | Line 1: | ||
| − | + | = <span class="f_Header">Funktion</span> = | |
| − | + | Gibt eine Zeichenkette zurück, die aus m Wiederholungen des Zeichens mit dem ASCII-Code n besteht. | |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Revision as of 23:11, 9 March 2013
Contents |
Funktion
Gibt eine Zeichenkette zurück, die aus m Wiederholungen des Zeichens mit dem ASCII-Code n besteht.
Syntax
var = STRING(m ,n)
Remarks
|
Var |
The string that is assigned. |
|
N |
The ASCII-code that is assigned to the string. |
|
M |
The number of characters to assign. |
Since a string is terminated by a 0 byte, you can't use 0 for n.
Using 0 for x will result in an empty string.
See also
Example
$regfile = "m48def.dat" ' specify the used micro $crystal = 8000000 ' used crystal frequency $baud = 19200 ' use baud rate $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 S = String(5 , 65) Print S 'AAAAA End
| Languages | English • Deutsch |
|---|