At 07:20 PM 5/27/2008, Bill Eyring wrote:

I have a static text control on a form.  I use this control to
run an eep.

The static text control caption is 99.
The static text control component_Id is C99.

The following command in 7.5 works as expected returning a
variable value of 99 for vtcandle.

set v vtcandle text=null
GETPROPERTY C99 CAPTION 'vtcandle'
set v vtcandle int

This very same code does NOT work in the latest version of 8.0

Can anyone explain why it works in 7.5 and not 8.0 ?


Bill,

Try the following code and see what you get.

-- start here
CLEAR VARIABLES vtCandleTxt,vtCandleInt
SET VAR vtCandleTxt TEXT = NULL
SET VAR vtCandleInt INTEGER = NULL
GETPROPERTY c99 CAPTION 'vtCandleTxt'
PAUSE 2 USING .vtCandleTxt ICON INFO
SET VAR vtCandleInt = (INT(.vtCandleTxt))
RETURN
-- end here

Variable vtCandleInt is the one you want.

That's all there is to it!

Very Best R:egards,

Razzak.


Reply via email to