🔒 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
  • 602
    Views
  • 4
    Participants
Last reply from:
deadsheep

Trending Topics

Online now

Members online
1,000
Guests online
2,956
Total visitors
3,956

Forum statistics

Threads
2,331,598
Posts
29,259,284
Members
1,147,720
Latest member
gewad
Back
Top