set_property TEXT not working?? (None Specified)
At 29 MAR 1999 07:29:07PM Paxton Scott wrote:
DECLARE function get_property, set_property
PKEY =NEWDATA
*pkey=.REPORTED_BY-]TEXT
NAME=XLATE( "PERSONS" , PKEY , "DISPLAY_NAME_NUMBER" , "X" )
STATUS=set_property(@window:".REPORT_PERSON_NAME","TEXT",NAME)
/*
IF LEN(PKEY) THEN
show=set_property(@window:".REPORTED_BY_MORE_BUTTON", "VISIBLE" , 1)show=set_property(@window:".REPORTED_BY", "VISIBLE" , 1)End end else
show=set_property(@window:".REPORTED_BY_MORE_BUTTON", "VISIBLE" , 0)show=set_property(@window:".REPORTED_BY", "VISIBLE" , 0)End
*/
STATUS=set_property(@window:".REPORT_PERSON_NAME","TEXT",NAME)
RETURN 1
This little snippet of code hangs on the change event of an edit box that receives a key. The change allows the retrival of information to 'stuff' in another control (@window]REPORT_PERSON_NAME). This works fine as shown. However, I'd like to control the visability of a couple of other controls based on wheather or not there is infact a key in the .REPORTED_BY control. When I remove the comment marks, to activate this part of the code, the text does not display even though it seems to be set when I view the properties in the debugger. Where am I going wrong? TIA [email protected]
[url=http://www.wws.net/arcs/]ARCS, Inc.
At 29 MAR 1999 08:54PM Paul Marraffa wrote:
Try using INVALUE in place of TEXT
At 30 MAR 1999 08:29AM Cameron Purdy wrote:
Paxton,
The line "end end else" should be "end else".
Cameron Purdy
Revelation Software
At 30 MAR 1999 08:38AM Oystein Reigem wrote:
C,
Yes, but the compiler discovers that. It's not one of those syntax errors that go undetected until you run the program.
- O -
At 30 MAR 1999 10:53AM Paxton Scott wrote:
Nothing like another pair of eyes after a long day!!!