DW
How to access elements of multi dimension array May 25, 2012 02:39AM |
Arie
Re: How to access elements of multi dimension array May 25, 2012 09:29AM |
DW
Re: How to access elements of multi dimension array May 25, 2012 03:04PM |
stCabinet is structure //These fields will by sent back and forth from the table ItemNumber is real Nomenclature is string QTY is real Hinge is string FE is string Description is string END clCabinets is class arrST_Cabinets is array of stCabinet arrST_Mods is array of stMods END //This is the code that worked. //Declare the array of structure arrCabs is array of clCabinets.stCabinet //Fill it from the class holding the data //p_arrST_Cabinets is a property of the class with 2 procedures for getting and setting of the data in the class. arrCabs = gclCabinets.p_arrST_Cabinets //Declare a single structure to fill each row //The only reason I do this is the autocomplete works when type the field names Cab is clCabinets.stCabinet //Get the number of rows from the array so I can loop thru it to fill my table nCount is int = ArrayCount(dsD) For i = 1 to nCount Cab = arrCabs TableAddLine(TVT_Mods,Cab.ItemNumber,Cab.Nomenclature) End