Home > lang > public 
 en fr de es it nl pl pt pt_BR mk ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
PUBLIC
Kjo fjalë çelëse përdoret për deklarimin e qasjes së metodës globale,ndryshores ose vetisë.

Nryshorja publike,metoda ose vetia mund të përdoren edhe jashtë kodit të klasës.

Example

PUBLIC iNumerues AS Integer

PUBLIC SUB btnTest_Click()

  DIM iLokale AS Integer

  iCounter = iNumerues+ 1
  iLokale = iLokale + 1

  txtField1.Text = CString(iNumerues)
  txtField2.Text = CString(iLokale)

  PRINT "PUBLIC:"; iNumerues; "  DIM:"; iLokale

END

PUBLIC:1  DIM:1
PUBLIC:2  DIM:1
PUBLIC:3  DIM:1
PUBLIC:4  DIM:1

See also

Deklarimi i ndryshoreve, Deklarimi i metodave