At 03:11 PM 11/17/2009, Jim Belisle wrote:

Thanks Razzak. I thought that was the way to go and it worked very
well. I now want to know what command I will use to do the following:

When I first enter the form, I want to get the information from specific
fields (Model & Pieces) from the detail section and put them into
variables.  The purpose is to add them to a note field on the Header.
The final results will be like this:  SB16-1, 8J2GW-2 etc. I realize I
will have to change the pieces from Integer to text. What commands would
I need for this?


Good!

Now what you need is to use the GETPROPERTY <CompID> TEXTVALUE 'varname'
command to dynamically capture the field value, analyze the condition
and then handle everything accordingly.

-- Example 1:
   IF varname = 'SB16-1' THEN
      -- conditional stuff here ..
   ENDIF

-- Example 2:
   IF varname IN (SB16-1,8J2GW-2) THEN
      -- conditional stuff here ..
   ENDIF

You can also use the Form Variable as Expression based on a column which
will always return the correct value on a focused control of selected row.

Very Best R:egards,

Razzak.


Reply via email to