|
-
Jun 21st, 2007, 10:40 PM
#1
Thread Starter
Addicted Member
Exit Hashtable function...need help
Hello everyone,
I have a function that returns a hashtable. If there is a key missing from the hashtable, it needs to display (Console.WriteLine()) that the hashtable is missing a certain key.
this is 'Exit Sub' in vb.
i know its return in C#, how ever i am getting a complile error of "An object of a type convertible to 'System.Collections.Hashtable' is required".
if i do return false; i get cannot convert bool to Hashtable (makes sense...)
my my question is, how do i exit the remainder of the function?
i know i can use lable's, and would be quite happy to do so, if this is the correct way of doing this?
Thanks,
Justin
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
|