|
-
Feb 1st, 2003, 05:07 PM
#1
[*resolved] string to char?
is there a function to convert a string to an array of characters?
I wrote my own, but just wondering if there is a way to do so
Last edited by MrPolite; Feb 2nd, 2003 at 02:23 PM.
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 1st, 2003, 07:24 PM
#2
Hyperactive Member
Any chance of including your own version in the next update of the VBCodeBook CodePack?
-
Feb 1st, 2003, 07:42 PM
#3
Originally posted by RealNickyDude
Any chance of including your own version in the next update of the VBCodeBook CodePack?
sure 
VB Code:
Public Shared Function StringToChar(ByVal s As String) As Char()
If s Is Nothing Then Return Nothing
Dim chars(s.Length - 1) As Char
Dim i As Integer
For i = 0 To s.Length - 1
chars(i) = CChar(s.Substring(i, 1))
Next
Return chars
End Function
would you put my name there?
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 2nd, 2003, 12:07 AM
#4
Junior Member
Is this what your talking about?
VB Code:
Dim TheWord As String = "Moo"
Dim Letters() As Char
Letters = TheWord.ToCharArray()
-
Feb 2nd, 2003, 12:32 AM
#5
Originally posted by FireRabbit
Is this what your talking about?
VB Code:
Dim TheWord As String = "Moo"
Dim Letters() As Char
Letters = TheWord.ToCharArray()
yeah, thanks again, you're the man
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 2nd, 2003, 07:54 AM
#6
-
Feb 2nd, 2003, 02:23 PM
#7
Originally posted by PT Exorcist
Convert.ToChar()
I believe that doesnt return an array. But thanks for posting... I didnt know a Convert class existed I guess it's the same as CType, CByte, CWhatever functions though
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 2nd, 2003, 02:25 PM
#8
yay gay
actually it isnt the same as ctype...there are conversions ctype can't do and Convert.Toxxxx can do
\m/  \m/
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
|