DECLARE EXTERN (was Re: Any response to my DECLARE question)

Kenneth Brody kenbrody at bestweb.net
Wed Apr 28 15:00:24 PDT 2004


Jeff Harrison wrote:
> 
> Ken Brody wrote:
> >
> > Jeff Harrison wrote:
> > [...]
> > > You mentioned that the purpose of declare extern is to tell
> > filePro that
> > > there is a variable in existence on another table that will
> > be calling this
> > > one... While that will usually be true, it does not have to
> > be.  You could
> > > take advantage this feature as a way of using long variable
> > names without
> > > explicitly casting them.  I have actually done this on occasion.
> > [...]
> >
> > Why not just DECLARE it without any length or type, as in:
> >
> >    DECLARE myvar
> >
> 
> Yes, that would save me 7 characters, but in the example that I sited the
> processing table could also be used as a "call" table, and therefore would
> need the extern key word added.

If you are planning on sharing it among processing tables, yes.  If so,
then the EXTERN isn't really related to using it "without explicitly
casting" it.  And if you are not sharing it, then why EXTERN it?

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list