Android Question Constants...

Everest

Member
Licensed User
Longtime User
Hello,

I am returning after a year away. One year ago constants were not supported.

I do not find any reference in the user guide. Are they supported in Version 3?

Regards,

Mark
 
Could someone supply a brief explanation re the difference between the above initialized variable (post #2) and a Constant
Would not the variable declared in Process_Globals be the equivalent of a Constant ?

Cheers mj
 
Upvote 0
Note that you can write:
Code: Copy
Dim x As Int = 3

About your question, the difference is that the compiler doesn't allow you to change the value of a "constant". This is not the case here. You can change x in your code to a different value.

By setting a constant it is clear that the value will never change.[/code]
 
Upvote 0
Back
Top