الرئيسية > comp > gb > string 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
THIS WIKI IS DEPRECATED AND IS READ-ONLY. THE NEW WIKI IS THERE.
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
String (gb)
This class provides UTF-8 string manipulation methods.

Symbols
This class is static.

Static methods 
 Byte  Chr  Code  Comp  InStr  Index  IsValid  LCase  Left  Len  Lower  Mid  Pos  RInStr  Right  UCase  UCaseFirst  Upper 

Be careful because standard جامباس string routines only deal with ASCII strings.

To use a non-UTF8 string you must first convert it with Conv$.

مثال

DIM hFile AS Stream
DIM sOneNonUTF8Line AS String
DIM sUTF8Line as String

' Print a WINDOWS-1253 text file to standard output
hFile = OPEN "/home/ilias/sometextingreekWINDOWS-1253.txt" FOR INPUT

WHILE NOT Eof(hFile)
  LINE INPUT #hFile, sOneNonUTF8Line
  sUTF8Line = Conv$(sOneNonUTF8Line, "WINDOWS-1253", "UTF-8")
  PRINT sUTF8Line
  'alternatively
  'LINE INPUT #hFile, sOneNonUTF8Line
  'PRINT Conv$(sOneNonUTF8Line, "WINDOWS-1253", "UTF-8")
WEND
FINALLY ' Always executed, even if an error is raised
  CLOSE #hFile
CATCH ' Executed only if there is an error
  PRINT "Cannot print or read or convert lines from file "; "/home/ilias/sometextingreekWINDOWS-1253.txt"