Dim array Question

Scantech

Well-Known Member
Licensed User
Longtime User
This seems to be allowed in B4A. Is there anything I should be concerned about the Dim SRectGauge part. App is taking it ok. Do you guys ever call out statemanager in Process Globals, if not why?

B4X:
Sub Process_Globals
     Dim MGA as int
     MGA = AppMaxAllowedGauge
     Dim SRectGauge(MGA+1)      '+1 is for Preview
end sub

Sub AppMaxAllowedGauge() As Int
   MGA = StateManager.ReadIni("MaxAllowedGauges",  File.DirInternal, "Preference.cfg", 15)
   Return MGA
End Sub
 
Last edited:
Top