|
-
Feb 26th, 2004, 09:49 PM
#1
Thread Starter
New Member
public variable in a class
HI all,
I am trying to change the values of my constants. i have declared these constants in a class as publiv cons var1 = 'value'
how ever i am not able to change this value from with in the program. is there any way i can do this or is there any way i can declare a variable in a class and set the value from with in my program during run time.
Thanks
-
Feb 26th, 2004, 10:05 PM
#2
If you declared a variable as a constant, then it is going to remain.... well constant. You're not supposed to change it.
-
Feb 26th, 2004, 10:14 PM
#3
Thread Starter
New Member
ok.. can anyone give me a sample of how to do this. Meanning, when i get the values from my db I want to store it in avriable that can be accessed from any form or class.
I am new to this
thanks
-
Feb 26th, 2004, 10:20 PM
#4
Originally posted by tekd
ok.. can anyone give me a sample of how to do this. Meanning, when i get the values from my db I want to store it in avriable that can be accessed from any form or class.
I am new to this
thanks
Just don't make them a constant
-
Feb 27th, 2004, 01:31 AM
#5
Frenzied Member
Why not make it a public shared property?
kind regards
Henrik
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
|