Calculating Symbolics (OpenInsight 32-bit Specific)
At 27 DEC 2009 11:54:16AM Marty Rosenbloom wrote:
Hi,
I am using OI 7.2.
I have a series of symbolics on my form. In the tab order they are the last ones and range from 228 to 239. None of then are dependent on the other. Symbolic 228 calculates correctly, while all the others don't. I copied all the other codes to 228 to try them out and they all work in 228. 229 to 239 still don't want to work. What am I missing?
TIA,
Marty
At 27 DEC 2009 03:47PM Warren Auyong wrote:
When using symbolics in FORMs you often have to invoke a CALCULATE event in appropriate places to get them to update.
At 27 DEC 2009 09:12PM Marty Rosenbloom wrote:
Hi Warren,
I don't use OI very often so I need a little help.
The entry control is a combo box. I use the CHANGED event to set up some of the other controls. I programatically advance to the next control. From there I advance through the form and fill in the pertinent information. This form has a lot of symbolics on it. Most of them fill in automatically except for the ones mentioned previously. The form worked fine with the previous symbolics for a long time. The last ones have just been added to the form. I have tried to send an event to CALCULATE, but I don't know which control and to what event and the syntax to use.
Thanks for any help that you could provide.
Marty
At 28 DEC 2009 09:36AM Marty Rosenbloom wrote:
Warren,
I'm thinking now that it is in my code. All of the new symbolics use the same code except for the column name. I am working on that now.
Thanks,
Marty
At 29 DEC 2009 03:43PM Warren Auyong wrote:
From the CHANGE or LOSTFOCUS event of a control that your symbolic depends on. LOSTFOCUS is preferred since each keystroke is a CHANGE event. See the helps on Send_Event Function:
Declare Function Send_Event
SymControl=@WINDOW:'.yourcontrol'
dummy=Send_Event(SymControl,'CALCULATE')
At 09 JAN 2010 11:02AM Kauko Laurinolli wrote:
I had the same issue today.
All it takes is to do Send_Event(MYCTRL,"LOSTFOCUS") to the control from which your symbolic is depending on (MYCTRL).
No code is needed in MYCTRL lostfocus event.