it seems it is not possible to use a type variable in another type variable.
Type WLAN_Type (IP As String, SSID As String, Password As String, Chanel As Byte, BSSID As String)
Type Settings(Resets As UInt, Summertime As Boolean, WLAN As WLAN_Type)
Scanning through the forum it appears that (using V4B 8.3+) it is OK to define global variables in the Starter Server (in the sub Process_Globals) as it will not be removed by the OS whilst the App is running, Question - is that correct?
Also, would I be safe to store global variables...
If we have a sub like this...
' This is a very important sub
Public Sub showingOff
Msgbox("Never use Msgbox", "Important message")
...we get very nice docs when hovering that sub name in other code:
However, if we do the same with a variable:
' This timer is very important...
Have a simple B4A app with 2 modules, Main and Starter. Both need to do logging, but only in debugging mode. I have a Public variable for this bLog, which I have declared in the Starter module like this:
Public bLog As Boolean
The Sub that does the logging is in...