|
-
Jan 31st, 2006, 12:09 PM
#1
Thread Starter
Hyperactive Member
VB Conversion [RESOLVED]
Here is the couple lines of code i'm working on Converting into C#..I'v referenced the CStr but cant find any Methods for it in C# that i notice..
VB Code:
ClientList.Items.Add(CStr(x))
Label4.Text = CStr(CDbl(Label4.Text) + 1)
' looking to convert the CStr,CDbl...I know the Dbl = Double & Str = String but converting is what i need help with..
Thxs in Advanced for the help..
Last edited by Rattlerr; Jan 31st, 2006 at 12:19 PM.
-
Jan 31st, 2006, 12:16 PM
#2
Re: VB Conversion
I think C#.Net is able to do this:
VB Code:
ClientList.Items.Add(Convert.ToString(x))
Label4.Text = Convert.ToString(Convert.ToDouble(Label4.Text) + 1)
Might need a tweak or two, but it's all the same Fx
-
Jan 31st, 2006, 12:19 PM
#3
Thread Starter
Hyperactive Member
Re: VB Conversion
Thxs for the help appreciate it..
-
Jan 31st, 2006, 08:40 PM
#4
Re: VB Conversion [RESOLVED]
The Convert methods are indeed the closest replacement for the VB conversion macros. Add the semi-colons and you're done
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
|