I would like to do that but I don't know how.....

I havent looked into this to deep but I dont know how to do this.....

In C# you see constructions like this...

foreach (string mystr in bla bla)
   mystr.trim();

In VB.NET this would be

Dim Mystr as String
For Each Mystr in BlaBla
   MyStr.trim()

Is it possible in VB.Net to use a same kind of construct , now I have to declare it before the foreach...

Published 09-30-2004 6:10 PM by Patrick Wellink
Filed under: ,

Comments

# re: I would like to do that but I don't know how.....

Friday, October 01, 2004 7:27 AM by Patrick Wellink
very simple Patrick:

For Each Mystr As String In BlaBla
Mystr.Trim()
Next

# re: I would like to do that but I don't know how.....

Friday, October 01, 2004 10:16 AM by Patrick Wellink
Hmmmmmm...(easy)

thanksalot Jan