Variable Lookup Field

Scott Walker ScottWalker at RAMSystemsCorp.com
Thu Aug 7 14:54:44 PDT 2008





Subject: Variable Lookup Field


I'm creating an export routine and I'd like for the user to be able to
enter which field numbers they want exported and then export just those
fields.  I have a dummy variable, ba, that contains the field number I
want to export, and I'd like to use the variable with a lookup.  I step
through the debugger and when I get to the line that contains hs=fab(ba)
I get an error "Reference to a field that doesn't exist".  ba contains
the number 14, and before this line executes I can check fab(14) and I
get the right data.

Is it possible to use a variable with a lookup?

Thanks,
Chris




Chris,

I may be wrong on this but I don't think you can reference a looked up
field with a variable like you're trying.

I thinks you need to alias an array to the looked up file and then
reference the field number desired by using that array element.



Regards,

Scott

Team Industries, Inc. --- 2007 Labor - Management Award Winner ---

Nominated by the United Association of Plumbers & Steamfitters of the
United States and Canada, and selected/presented by the Union Label &
Service Trades Department of the AFL-CIO.
_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list