Jump to content

Recommended Posts

Posted (edited)

Boas pessoal... Eu estou com um problema num array tenho por exemplo teste codigo

Public Class codCFGedit
 Dim lines() As String
Private Sub btnREAd_Click(sender As System.Object, e As System.EventArgs) Handles btnREAd.Click
 lstcommands.Items.Clear()
 lines = Nothing
 lines = IO.File.ReadAllLines(txtCFGloc.Text)
 exID = 0
 For Each line As String In lines
	 If line.Contains("// generated") Then
		 exID = exID + 1
	 Else
		 lstcommands.Items.Add(line.Split("""")(0).Trim())
	 End If
 Next
End Sub

E até ai tudo bem

Agora quero adicionar uma nova linha ou seja adicionar mais um valor ao array... mas nao estou a conseguir... alguma ideia?

Edited by Caça

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.