Type variable reference - compiles

Rusty

Well-Known Member
Licensed User
Longtime User
I have a type variable:
B4X:
Type Lic (OrganizationCode As String, GroupCode As String, CPULicense As String, _
                Addr1 As String, Addr2 As String, City As String, State As String, ZipCode As String, _
                MainPhone As String, MobilePhone As String, FirstName As String, Lastname As String, _
                DataIPAddress As String, DataIPPort As String, VerIPAddress As String, VerIPPort As String)
Dim LicenseData As Lic
later within the program I have:
B4X:
OrganizationCode = edtOrganization.Text
This actually compiles.
There is no other variable named OrganizationCode defined in any other place including all other activities and services.
The correct DIM should be
B4X:
LicenseData.OrganizationCode = edtOrganization.text
Thanks,
 

Rusty

Well-Known Member
Licensed User
Longtime User
Yes, that's right...thanks. I wasn't thinking.
Is there an "explicit" option so this can be stopped, if not desired?
Thanks Erel
 
Top