Welcome, Visitor!

Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.

Visual Basic Dersleri ( Ders 5)

D

dmxlimithra

Yaptıkların Kadar Yapmadıklarından da Sorumlusun !
Thread Starter
Ultra Member
Joined
Jan 23, 2023
Messages
316
Reaction score
37
Points
28
Ders 5 - Diziler





Dizilerin Kullanımı;

1. Kullanım Şekli

Kod:
Dim dizi_adi(dizi sayısı) As Değişken Türü


2.Kullanım Şekli;

Kod:
Dim dizi_adi() As değişkentürü = {"Dizi Verisi 1", "Dizi Verisi 2"}



Not: Dizi 0'dan başlar yani dizi sayısını 2 yaparsanız toplam 3 olacaktır(0-1-2).

Örnek(1. Kullanım Şekli);

Kod:
Dim diller(2) As String

diller(0)="Türkçe"

diller(1)="İngilizce"

diller(2)="Almanca"

Msgbox(diller(0)) '->Ekranda "Türkçe" yazacaktır. Msgbox içindeki dizi numarasını değiştirerek mesajıda değiştirebiliriz.


Örnek(2.Kullanım Şekli):


Kod:
Dim iller As String = {"Malatya", "Ankara"}




Msgbox(iller(0)) 'Ekranda Malatya yazacaktır.










.
 
S

Shiva

Manager
Admin
Joined
Jul 31, 2019
Messages
4,062
Reaction score
10,062
Points
113
Location
Berlin
Lütfen spam olarak konu açmayın. Tek bir konu üzerinde bu paylaşımı yapabilirsiniz.
 
D

dmxlimithra

Yaptıkların Kadar Yapmadıklarından da Sorumlusun !
Thread Starter
Ultra Member
Joined
Jan 23, 2023
Messages
316
Reaction score
37
Points
28
Lütfen spam olarak konu açmayın. Tek bir konu üzerinde bu paylaşımı yapabilirsiniz.
çok uzun oluyor öyle okunması daha zor oluyor millet olarak kısa şeyler her zaman bizi cezbeder mantığından dolayı :)
 
S

skeferi33

Confirmed Memb.
Joined
Aug 9, 2021
Messages
147
Reaction score
9
Points
18
aradıgım bişeyi bulmam nekadar güzel ya
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Theme editor

Top Bottom