Programmatically Firing Conversion Routine (OpenInsight Specific)
At 09 SEP 1999 04:22:42PM Greg James, ISIS, Inc. wrote:
I have some code that reads a record and then dumps certain fields into non-table bound controls on a form. The controls have custom validation/conv routines, but the conv doesn't automatically fire after a call to set_property.
For example if my conv routine converts 'Y' to 'Y=Yes', for example, and I use set_property(ctrlentid,'INVALUE','Y'), how can I get the conv to fire right after the call to set_property?
Thanks.
At 09 SEP 1999 09:58PM Richard Hunt wrote:
set_property(ctrlentid,'INVALUE','Y')
I would do this…
Given that VALUE equals Y.
CONV=GET_PROPERTY(CTRLENTID,'CONV')
OCONV_VALUE=OCONV(VALUE,CONV)
SET_PROPERTY(CTRLENTID,'INVALUE',OCONV_VALUE)
Or change the OCONV to ICONV.
At 10 SEP 1999 10:13AM Greg James, ISIS, Inc. wrote:
Richard:
Thanks for your help. I am curious – the 'default' behavior of an OI form does this automatically when a record is read. I wonder if this is accomplished by firing the conv (similar to your suggestion) for each control that has an 'invalue' after the form's read event?