` Printed Icetips Article

Icetips Article



Par2: Passing fields and keys as parameters
1998-03-09 -- Jim Katz
 
Prototype your procedure:

MyProc                PROCEDURE(*? FldName,*Key MyKey)

In MyProc in your data section:

PassedField            ANY  !! << This is important, you must use an ANY type here.
PassedKey            ?Key

In your code in MyProc

  Code
  .....
  PassedField  &= FldName
  PassedKey &= MyKey

  Set(PassedKey)
or
  Do FieldPriming
  Set(PassedKey,PassedKey)

You would call MyProc, just by using the field and key labels as
declared in your data dictionary.



Printed May 6, 2024, 10:25 am
This article has been viewed/printed 35117 times.