At 11:12 AM 12/5/2013, Bruce A. Chitiea wrote:

I have now a working Variable Lookup Combo Box ( vlcb_Sample ) displaying
seven line items from a seven-record table.

Variable values are selected from and reported out of the control as
expected.

I anticipate that a GETPROPERTY vlcb_Sample ITEMINDEX 'varname' statement
in the ON CLICK EEP would capture index values [ 0 - 6 ].

Instead, reported values are  [ 48 - 54 ].

How can this be?


Here' how ...

Use the following exact code, as On Click EEP:

-- On Click EEP
   CLEAR VARIABLE vItemIndexTxt,vItemIndexInt
   SET VAR vItemIndexTxt TEXT = NULL
   SET VAR vItemIndexInt INTEGER = NULL
   GETPROPERTY VLCB_Sample ITEMINDEX vItemIndexTxt
   SET VAR vItemIndexInt = (INT(.vItemIndexTxt))
   PAUSE 2 USING .vItemIndexTxt +
   CAPTION 'Capturing ItemIndex Values ...' +
   ICON INFO +
   BUTTON 'Press any key to continue ...' +
   OPTION MESSAGE_FONT_NAME Tahoma +
   |MESSAGE_FONT_COLOR NAVY +
   |MESSAGE_FONT_SIZE 11 +
   |THEMENAME Longhorn
    RETURN

Try that exercise and what you get? Magic!

Remember, the returned values for GETPROPERTY command are always TEXT.

That's all there is to it!

Very Best R:egards,

Razzak.
www.rbase.com
www.facebook.com/rbase
--
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to