String Manipulation Keywords

Action Keywords GB VB6
Compare two strings StrComp

StrCmp, StrCmpI, LStrCmp, LStrCmpI

v

v

v
Concatenation $

+, &

v

v

v

Convert strings StrConv

Wide, Ansi

  v
Convert to lowercase or uppercase Format, Lcase, Ucase

Upper, Lower

v

v

v
Create string of repeating character. Space, String v v
Find length of a string. Len v v
Find length of a string in a Variant. VstrLen, VStrLenB v v
Find memory position of a string in a Variant. VstrPtr v v
Format a string Format

sprintf, Using

v

v

v
Investigate a string EndsWith, FindFirstOf, FindLastOf, StartsWith. v v
Justify a string Lset, Rset v v
Manipulate strings InStr, Left, Ltrim, Mid, Right, Rtrim, Trim v v
Manipulate strings LeftUntil, Mirror, RightUntil, RinStr, SubStr, Ztrim v  
Set string comparison rules. Mode v v
Work with ASCII and ANSI values. Asc, Chr v v
Translate Xlate v  
Replace Replace v
reSub v
Regular expressions Split, Join, preMatch, reMatch, ReSub v  
Read a null-terminated string from memory Char{}, CharPeek, Peek$, StrPeek v  
Write a null-terminated string to memory Char{}=, CharPoke, Poke$, StrPoke v  

See Also

Arrays Keywords

Collection and Hash Keywords

Conversion Keywords

Crypting, Mime encoding, Checksum Keywords

Data Types Keywords

Dates and Times Keywords

Input and Output Keywords

Miscellaneous Keywords

Operators Keywords

Variables and Constants Keywords

{Created by Sjouke Hamstra; Last updated: 18/12/2022 by James Gaite}