I have the following question..
Am I doing this right? The point is I want to make a twodimensional array, which is in fact an array of another array type. This is what I do:
type FoodRec = record
FoodID : Integer;
FoodDescr : String;
FoodPortion : String;
FoodKCal : SmallInt;
FoodFat : SmallInt;
FoodQuantity : SmallInt;
FoodRecNo : SmallInt;
MealFoods = Array of FoodRec;
var TotArray : Array of MealFoods;
then I can give it 'room' with setlength(TotArray), in which 10 the dimension is of the Mealfoods array (I think..)
Is this the right way to do this? Or is there a more simple or safer way..