For loop for accessing different fields
Hi there.
I'm developing a solution that has, in some tables, multiple options for same kind of data. For example: 'option 1', 'option 2', 'option 3' ... 'option 10', and their corresponding companions, like 'prince 1', 'price 2', 'price 3' ... 'price 10'. What I want/wish: to use a simple for loop for certain operations, like zeroing multiple fields. Something like this:
function initializeField(fieldName:text) do
for i from 1 to 10 do
let myField := fieldName +" "+i;
this.myField := 0;
end
end;
initializeField("price");
I know this part of the code returns a String:
let myField := fieldName +" "+i;
So I was wondering how can I evaluate it no a field name (or if this is possible).
Reading other posts, it seems Ninox does not support this feature (evaluating a string as a field name) but maybe I haven't used the proper search terms...
2 replies
-
Maybe Jacques TUR has a trick up his sleeve that can find the Ninox 'real name' for each field name.
Content aside
- 2 yrs agoLast active
- 2Replies
- 193Views
-
3
Following