field name and key name as a variable 
Author Message
 field name and key name as a variable

Hi all

How to pass field name and key name as a variable?

procedure(fieldname,keyname)
set(database,keyname)
fld:anyfield=fieldname



Tue, 22 Aug 2000 03:00:00 GMT  
 field name and key name as a variable

Hi Witek,
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.

HTH

Quote:

> Hi all

> How to pass field name and key name as a variable?

> procedure(fieldname,keyname)
> set(database,keyname)
> fld:anyfield=fieldname

--
Jim Katz
CTO iTradeZone,Inc.
http://www.iag.net/~jimkatz/
Using Clarion for Windows
Always looking for the simpler solution.


Fri, 25 Aug 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. field name and key name as a variable

2. Using a variable name for a variable name??

3. Variable containing Field Name

4. Variable File / Field Names

5. variable for a field name, and binary source file questions

6. Field Names From Variables

7. Variable Field Name ?

8. Field names in a field...

9. Selecting Fields Based On Field Name

10. variable contents to variable name

11. array name in variable variable

12. getting variable name from the variable itself?

 

 
Powered by phpBB® Forum Software