×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Because all file fields are global.  Your data structure is
local to the procedure hence those are local fields which hide
the global fields from the file.

Scott Mildenberger

--- "Fisher, Don" <Dfisher@xxxxxxxxxxxxxxxxx> wrote:
> I think I'm confused.  I defined a data structure DS1 based on
> a file called
> FILE1 and created a pointer PTR1 initialized to the address of
> DS1 in a
> procedure.  This procedure calls another procedure using PTR1
> as the
> parameter.  This second procedure also has a data structure
> DS1 that is
> defined using FILE1 and BASED on the passed pointer.  No
> PREFIX is used on
> either data structure.  No when the second procedure reads the
> file used to
> define DS1, the fields in DS1 are not updated.  They're the
> same as the
> fields in the file so what happened?
> 
> I have attempted passing PTR1 by VALUE and by reference to no
> avail.  No
> luck either in making the BASED pointer a separate field from
> the passed
> pointer or in creating a separate data structure.
> 



__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.