Advertisement

Help

Started by April 28, 2002 08:51 PM
1 comment, last by gamechampionx 22 years, 7 months ago
I have a question. What is the VB equivalent of switch? On a separate note, using string.h, I have an array of characters set up. It seems that I don''t need an extra character for ''\0''. Is this correct?
Check out Drunken Brawl at http://www.angelfire.com/games6/drunken_brawl!
quote: Original post by gamechampionx
On a separate note, using string.h, I have an array of characters set up. It seems that I don''t need an extra character for ''\0''. Is this correct?

No. C-style strings always require null termination.

Can''t help you with the VB switch, though...

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ ]
[ MS RTFM [MSDN] | SGI STL Docs | Boost ]
[ Google! | Asking Smart Questions | Jargon File ]
Thanks to Kylotan for the idea!
Advertisement
My VB memory is a bit rusty, but it might be SELECT CASE.
---visit #directxdev on afternet <- not just for directx, despite the name

This topic is closed to new replies.

Advertisement