DELCHAR/de

(Difference between revisions)
Jump to: navigation, search
((**COPIED FROM ENGLISH PAGE**) =)
(Remarks)
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="567" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="567" 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="86%" style="width: 470px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="86%" style="width: 470px; border: 1px solid rgb(0, 0, 0);" |  
The string where the character is removed from.
+
Zeichenkette aus der das Zeichen entfernt werden soll.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 30: Line 30:
  
 
| valign="top" width="86%" style="width: 470px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="86%" style="width: 470px; border: 1px solid rgb(0, 0, 0);" |  
The position where the character must be removed from.
+
Position, an der das Zeichen entfernt werden soll.
  
A value of 1 would remove the first character.
+
Ein Wert 1 würde das erste Zeichen entfernen.
  
 
|}
 
|}
Line 38: Line 38:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
Do not confuse with the DELCHAR<span style="font-weight: bold;">S</span>&nbsp;statement which removes all characters based on a character value.
+
Bitte nicht mit der DELCHAR<span style="font-weight: bold;">S</span>&nbsp;Funktion verwechseln bei der das angegebene Zeichen aus der gesamten Zeichenkette entfernt wird.
  
 
&nbsp;
 
&nbsp;
  
The DELCHAR removes one character from a string based on an index.
+
DELCHAR entfernt ein Zeichen aus einer Zeichenkette basierend auf einer Positionsangabe.
  
 
&nbsp;
 
&nbsp;

Revision as of 01:49, 21 February 2013

Contents

Funktion

Löscht ein Zeichen aus einer Zeichenkette.

 

 

Syntax

DELCHAR string, pos

 

 

Anmerkungen

string

Zeichenkette aus der das Zeichen entfernt werden soll.

pos

Position, an der das Zeichen entfernt werden soll.

Ein Wert 1 würde das erste Zeichen entfernen.

 

Bitte nicht mit der DELCHARS Funktion verwechseln bei der das angegebene Zeichen aus der gesamten Zeichenkette entfernt wird.

 

DELCHAR entfernt ein Zeichen aus einer Zeichenkette basierend auf einer Positionsangabe.

 

 

 

See also

DELCHARS , INSERTCHAR , INSTR , MID , CHARPOS , REPLACECHARS

 

 

Example


'----------------------------------------------------------------
' (c) 1995-2011, MCS
' del_insert_chars.bas
' This sample demonstrates the delchar, delchars and insertchar statements
'-----------------------------------------------------------------
$regfile="m88def.dat"
$crystal = 8000000
$hwstack = 40
$swstack = 40
$framesize = 40
 
dim s as string * 30
s = "This is a test string" ' create a string
delchar s, 1 ' remove the first char
print s ' print it
 
insertchar s,1, "t" ' put a small t back
print s
 
delchars s,"s" ' remove all s
print s
end

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