|
-
Feb 20th, 2004, 09:04 PM
#1
removing the first item of an array of strings?
uuh I wrote this, but it looks really ugly and dumd any better ways?  
VB Code:
Dim args As New ArrayList
args.AddRange(Environment.GetCommandLineArgs())
If args.Count > 1 Then
args.RemoveAt(0)
Dim filenames() As String
filenames = CType(args.ToArray(GetType(String)), String())
....
I just want to remove the first element of args(). That works but looks akward... just wondering if there is a better way
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 21st, 2004, 01:35 AM
#2
Sleep mode
The other dumb way is copy the array to another array starting from the second element not the first and then dispose the first array obj .
-
Feb 21st, 2004, 03:50 AM
#3
Originally posted by Pirate
The other dumb way is copy the array to another array starting from the second element not the first and then dispose the first array obj .
how do you do that
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Feb 21st, 2004, 04:31 AM
#4
Sleep mode
Originally posted by MrPolite
how do you do that
VB Code:
Dim arry2 As ArrayList = arry1.GetRange(1, arry1.Count - 1)
For Each s As String In arry2
MsgBox(s)
Next
-
Feb 21st, 2004, 02:23 PM
#5
Originally posted by Pirate
VB Code:
Dim arry2 As ArrayList = arry1.GetRange(1, arry1.Count - 1)
For Each s As String In arry2
MsgBox(s)
Next
ooh yeah you're right arraylists
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|