الرئيسية > lang > type > 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
السابق  التالي  تحرير  إعادة تسمية  تراجع  تحديث  بحث  الإدارة  
المستندات
التاريخ
 
string
DIM Var AS String

نوع البينات هذا يمثل متغير بطول عدد أحرف النص.

الحرف الأول من النص مرقم بواحد , وليس صفر.

Theoretically, the string can contain null characters (i.e. character whose ASCII code is zero). But as some جامباس functions internally rely on zero-terminated strings, especially the methods of native class having string arguments, you should avoid them as much as possible!

مثال

PUBLIC sPub AS String ' This string can be used by all subroutines in the same module

PUBLIC SUB Button1_Click()

  DIM sLoc AS String ' This string is local in this subroutine

  sPub = "74zu88"
  sLoc = Mid$(sPub, 3, 2)
  IF sLoc = "zu" THEN PRINT "Expected"

END

إنظر أيضا

أنواع البينات, String[], دوال النصوص, String Operators