🔒 Closed How to take all array elements except last element vb.net?

Status
Not open for further replies.
Dim example_array = {"1st", "2nd", "last"}
Dim stext As String = Nothing
For i = 0 To example_array.Count - 2

stext &= example_array(i) & vbLf

Next
MsgBox(stext)

ganto ba?
 
Dim example_array = {"1st", "2nd", "last"}
Dim stext As String = Nothing
For i = 0 To example_array.Count - 2

stext &= example_array(i) & vbLf

Next
MsgBox(stext)

ganto ba?
Prang ganto ksi yung current array
Array1Array2
AAA
BBB
CCC


Tapos lilipat ko sa tempArray pro di na dapat kasali yun C, CC
 
Status
Not open for further replies.

About this Thread

  • 5
    Replies
  • 612
    Views
  • 4
    Participants
Last reply from:
deadsheep

Trending Topics

Online now

Members online
1,097
Guests online
6,663
Total visitors
7,760

Forum statistics

Threads
2,353,635
Posts
29,380,590
Members
1,081,100
Latest member
buntuu
Back
Top