on 11-17-2007 4:35 AM
Dear Experts
I want to define a static variable in my First View.Where can i place it?
It is urgent plz send me the solution.
Hi,
If u want to make the static variable local to A View
Declare it as private in between
//@@begin others
//@@end
like
//@@begin others
private static final String str="text";
//@@end
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
At the end of the ,java file of the view you will see some annotations
as
//@@begin others
//@@end
place your code their
Ex:
//@@begin others
public static final int x=1; // final variable of type int.
//@@end
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the end of the view you would have (under implementation tab)
//@@begin others
public static int i =0;
//@@end
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.