I declare these two in fhe sane sub name.
Code: Select all
DIM WorkShip AS ShipData
REDIM PRESERVE FleetShips(460) AS ShipData
REDIM PRESERVE cause I have FleetShips earlier as a DIM SHARED FleetShips() as ShipData
it's not recognizing Shipdata but only for workShip. as in in the editor if I type WorkShip. no subfields appear there is no autocomplete. but if I type fleetships(1). then all the fields are in the auto complete list, as if it doesn't give WorkShip the right Structure.
EDIT:just cause i did it lol, I also tried declaring WorkShip as dim shared erlier and not declaring it the sub. same results.