|
-
Mar 16th, 2005, 02:31 PM
#1
-
Mar 16th, 2005, 08:26 PM
#2
Re: Initializing Char variables the easy way
Whats wrong with
VB Code:
Option Strict On
Option Explicit On
'...
Private ContantCharacter as Char = "D"c
'...
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Mar 17th, 2005, 04:07 AM
#3
Re: Initializing Char variables the easy way
You won't always want "D" at runtime. Maybe you don't know what you'll need until the program is running. This has been discussed before.
Say you need an array of chars ranging from 0 to 255, are you telling me you'd want to sit there and hard-code 255 lines? Nah me neither. You'd do it in a loop. Getting chars from their ascii number is awkward in proper VB.Net code. Well, it used to be.
I don't live here any more.
-
Mar 17th, 2005, 10:29 AM
#4
Re: Initializing Char variables the easy way
UPDATED Version. See first post's attachment.
I don't live here any more.
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
|