You said the Fail routine "nulls" variables, are you sure you did not Clear 
Variables.

Set var vtest1 integer
Set var vtest2 integer = 2
Set var vtest3 integer = 3
Set var vtest1 = .vtest2 + .vtest3    (Results okay)
Clear var vtest2
Set var vtest1 = .vtest2 + .vtest3  receive error Unrecognized global variable 
expression (2161) because I Clear 
variable vtest2

Lena
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Bruce A. Chitiea
Sent: Tuesday, November 05, 2013 1:54 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Form Designer: 'REFRESH' Variable Edit?

All:

RBG95_64 Latest

Q: How do I "refresh" a Variable Edit Control after recovering from an input 
error?

Scenario:

I've embedded a format mask ( 00:00;1;_ ) within a Variable Edit control ( 
ve_GateRunTime ) to capture a TEXT representation of a date: HH:MM. Success.

The ON EXIT EEP runs the input value through a series of error detection tests. 
Also success.

Upon error, the EEP delivers up appropriate PAUSE statements, refers handling 
to Fail routine which nulls variables. Focus returns to the PREVIOUS control in 
the tab order. I can then [TAB] to ve_GateRunTime and reenter.

If I include these two statements:

PROPERTY ve_GateRunTime SET_FOCUS 'TRUE'
PROPERTY ve_GateRunTime FIRSTCHAR 'TRUE'

... at the end of in the Fail routine, focus "never leaves" ve_GateRunTime.
While the cursor is correctly placed, the control accepts no input.

[TAB]bing beyond that generates:

'Unrecognized global variable in expression. (2161)'
[OK]
'Expression cannot be evaluated. (2179)'

TRACE then locates the error at a line number far beyond the number of lines in 
the EEP.

???


Thanks much,

Bruce Chitiea
SafeSectors, Inc.
eCondoMetrics
909.238.9012 cell


Reply via email to