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

Trending Topics

Online now

Members online
1,165
Guests online
3,604
Total visitors
4,769

Forum statistics

Threads
2,308,395
Posts
29,184,819
Members
1,191,965
Latest member
capacitynmw
Back
Top