|
-
Apr 27th, 2003, 09:22 PM
#1
Thread Starter
Lively Member
try. this.
int i;
try // in the main block
{
i = 0;
this.i = i;
}
catch (IOException){}
ERROR: undefined variable: this
how do i make a variable in a try block available to other methods in the class?
as a matter of fact, how to i make things, such as arrays, declared in a try block available outside?
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
|