At 05:00 PM 8/30/2005, Marc Shluter you wrote:

I tried using the same ComponentI for 3 buttons but it kept getting
the same button text caption no matter which button I clicked.

Is this possible with 7.5 ?
I think I am still missing something.


Marc,

Make sure that each button property includes the unique Component ID
for that button.

If you have three different buttons with three different button captions,
you should assign three different component IDs with embedded custom EEPs
to retrieve caption text into a common variable.

Example:

[Button1]
Caption 'Button 1'
Component ID: Button1
Custom EEP for Button1:
-- Start
SET VAR vButton TEXT = NULL
GETPROPERTY Button1 CAPTION vButton
RECALC VARIABLES
RETURN

[Button2]
Caption 'Button 2'
Component ID: Button2
Custom EEP for Button2:
-- Start
SET VAR vButton TEXT = NULL
GETPROPERTY Button2 CAPTION vButton
RECALC VARIABLES
RETURN

[Button3]
Caption 'Button 3'
Component ID: Button3
Custom EEP for Button3:
-- Start
SET VAR vButton TEXT = NULL
GETPROPERTY Button3 CAPTION vButton
RECALC VARIABLES
RETURN

That should help you understand the proper use of assigning
the Component IDs as well as using the GETPROPERTY command
to retrieve the caption value of any button.

Keep in mind that to retrieve the "actual value" of any
DB/Variable control, you'll need to use the "TEXTVALUE".

Example:

GETPROPERTY <ComponentID> TEXTVALUE variablename

Very Best R:egards,

Razzak.

Reply via email to