Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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?

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/eb3ca8a4c5459f0e852567e7006ff12c.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1