Global Constants

nacnud

Member
Licensed User
Longtime User
Hi,

I've read that we don't have a "global constant" concept as yet.

I am trying to do something such, in a "second activity / layout"

Sub Activity_Create(FirstTime As Boolean)
If ( FirstTime = True ) Then
Activity.LoadLayout(Main.G_STR_LAYOUT_USER_DETAILS)
End If
End Sub

In the "parent" activity, I have the code:

Sub Globals
...
'# These will tend to be in pairs. Given that a module normally is associted with one view.
Dim G_STR_MODULE_USER_DETAILS As String : G_STR_MODULE_USER_DETAILS = "modUserDetails"
Dim G_STR_LAYOUT_USER_DETAILS As String : G_STR_LAYOUT_USER_DETAILS = "lay_UserDetails"
...
End Sub

I just get the error message:

Error description: Unknown member: g_str_layout_user_details
Occurred on line: 21
Activity.LoadLayout(Main.G_STR_LAYOUT_USER_DETAILS)
Word: g_str_layout_user_details

What is the recognised way around this stuff? Do we have a framework that makes sense?

Sorry for the noob question...

Thanks,
Dunk
 
Top