GenDeathRaiser Posted May 16, 2005 Posted May 16, 2005 Sorry for this, but what's the casting command. In Java it's just (int) and in vb it was I think c(int) I can't figure it out. Quote
Afraits Posted May 16, 2005 Posted May 16, 2005 For the basic data types yes CInt, etc do the casting or you could look at CType(var, type) for explicit casting of classes into interfaces and the like Quote Afraits "The avalanche has started, it is too late for the pebbles to vote"
GenDeathRaiser Posted May 16, 2005 Author Posted May 16, 2005 Thanks a lot. Sorry about all the crap questions I'm just trying to switch to a more common language and I can't get anything right :(. Quote
Afraits Posted May 16, 2005 Posted May 16, 2005 No probs, just for reference if you end up using C# then (type) eg (Int) or (DataView) is the equivalent of the Ctype in VB.NET Quote Afraits "The avalanche has started, it is too late for the pebbles to vote"
Administrators PlausiblyDamp Posted May 16, 2005 Administrators Posted May 16, 2005 There is also DirectCast for use when casting beween sub classes. Search these forums and you will find a few discussions how each work and the benefits of each. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.