robertvg
11th July 2003, 12:13
How would one program a script variable, depending on a table field of the main table, to display correctly on a multi-occurance form ?
E.g.: if main table field value = "aaaa" I want a script variable 'selected' to show as tcyesno.yes, if value = "bbbb" I want it to show it as tcyesno.no.
In main.table.io, after.read I set selected = tcyesno.yes, but after all occurances are shown on the form, all 'selected' fields of all occurances are showing the value according the last record that was read in main.table.io (so if the last record field was 'aaaa', then all 'selected' fields will show "Yes").

thanx in advance,
R.

kbartelds
11th July 2003, 12:38
Hi

try this:

field.selected:
before.display:
on case table.field
case "aaaa" : selected = tcyesno.yes
break
case "bbbb": selected = tcyesno.no
break
endcase