Type Equvalent

Ask about the individual Gambas components here.
Post Reply
tailkinker
Newbie
Posts: 40
Joined: Tue Sep 17, 2024 11:06 am

Type Equvalent

Post by tailkinker »

Just wondering if there is anything in Gambas that works like the Type variable declaration (Visual Basic) in Gambas, and how to use it.

In my nutrient program, I use arrays to store different nutrient types, like carbs, proteins, fats, vitamins, and master conversions (say I am going from tbsp to 1/2 cup - so the elements in this array store the conversion rates to go from the csv baseline to the recipe needs for each column in the csv in the nutrient type arrays.)

I want to do something like send the type nutrients to the output module from fmain to calculations, then output without having to declare what I see as a collection of arrays individually.

ex. in VB I would put in the parenthesis for a procedure something like "nutrients as fornutrients", and then in the procedure access them as nutirents.carbs(dimension 1, dimension 2) and so on.
Post Reply