I've created an option type field in the Item(27) table with options 1, 2 and 3. If I'm counting the number of objects with, let's say, option 2, then how do I get that object in code?
I have:
IF _Item.FINDSET THEN
REPEAT
_SoftcaseObjects += _Item.<this is where the option should be if I'm on the right track>;
UNTIL _Item.NEXT = 0;
You might want to create a key with the optionfield, depending on the number of records in the item table and on how often you perform that count.
Another solution would be a flow field with method "count". It depends on what you want to achieve.
BTW, underscores at the beginning of a variable are a really bad idea.
You might want to create a key with the optionfield, depending on the number of records in the item table and on how often you perform that count.
Another solution would be a flow field with method "count". It depends on what you want to achieve.
BTW, underscores at the beginning of a variable are a really bad idea.
Answers
Another solution would be a flow field with method "count". It depends on what you want to achieve.
BTW, underscores at the beginning of a variable are a really bad idea.