When I've needed to do it, I have just written the few
lines going through the B cross reference of the ^DD(Filenumber,
root. It does keep one from dynamically creating fields
on the fly, and makes the list of fields in a file "static",
I guess. Perhaps if we had an API call, we would be able
to over-ride it and make dynamic fields etc....

David

> 
> Well, as I have learned more about M and Fileman, I
> have found that it is often just easier to "get the
> information yourself" rather than going through the
> API's. I guess everyone else must be doing the same
> thing, or this API would have been written already.
> 
> As per the code I posted before, the function to do
> this is only a few lines long.
> 
> Kevin
> 
> 
> --- steven mcphelan <[EMAIL PROTECTED]> wrote:
> 
> > To my knowledge there is no way to do what Kevin is
> > asking by doing it using
> > standard FileMan APIs only.  There are standard
> > Fileman APIs to get you:
> > 1. All the attributes for a field  if you know the
> > field number and file
> > number.
> > 2. All the attributes for a file number
> > 
> > But I could not get any of the Fileman standard APIs
> > to give me a list of
> > field numbers and field names when all you have is a
> > file number.  I would
> > like to see that code posted here if it can be
> > accomplished.  I am not
> > counting those screen scrape approach, i.e.., do a
> > List File Attributes to a
> > file and then read that file back in a scrape out
> > the field numbers and
> > names.
> > 
> > ----- Original Message ----- 
> > From: "James Gray" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Monday, July 11, 2005 1:26 PM
> > Subject: Re: [Hardhats-members] Data dictionary
> > question...
> > 
> > 
> > > I think the issue is that you want to use a
> > Fileman API on the file of
> > > files.  File 1 is the file of files.  I do not
> > think that Fileman will
> > care
> > > if the individual files have data in them.  If the
> > fields have been
> > defined
> > > for the individual files that is what the API's
> > can retrieve for you.
> > When
> > > you are looking at file 1 then the individual file
> > numbers are the IEN's
> > of
> > > the individual records of the file of files.  You
> > can also use Fileman
> > API's
> > > on the data dictionary which has been called File
> > 0.  However, you cannot
> > 0
> > > (zero) as the file number. You have to use the
> > actual global root.  I hope
> > > this makes sense.
> > >
> > > Jim Gray
> > >
> > > ----- Original Message ----- 
> > > From: "Kevin Toppenberg" <[EMAIL PROTECTED]>
> > > To: <[email protected]>
> > > Sent: Monday, July 11, 2005 9:13 AM
> > > Subject: Re: [Hardhats-members] Data dictionary
> > question...
> > >
> > >
> > > >A list of fields from a file IS what I want.  And
> > this
> > > > GETS^DIQ is a bit off target in that it gets
> > actual
> > > > values (meaning that there must be at least one
> > record
> > > > in the file file for it to work).  But this
> > would give
> > > > a list of the fields in the resulting array.
> > > >
> > > > Actually, now that I think about it, I doubt
> > that it
> > > > will return the name of a field if there is no
> > data in
> > > > that field.  So perhaps this function wouldn't
> > work
> > > > after.
> > > >
> > > > Perhaps there remains a need for another
> > function in
> > > > the API to list the names of fields in file.
> > > >
> > > > Thanks
> > > > Kevin
> > 
> > 
> > 
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by the 'Do More With
> > Dual!' webinar happening
> > July 14 at 8am PDT/11am EDT. We invite you to
> > explore the latest in dual
> > core and dual graphics technology at this free one
> > hour event hosted by HP,
> > AMD, and NVIDIA.  To register visit
> > http://www.hp.com/go/dualwebinar
> > _______________________________________________
> > Hardhats-members mailing list
> > [email protected]
> >
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
> July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
> core and dual graphics technology at this free one hour event hosted by HP,
> AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
> _______________________________________________
> Hardhats-members mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hardhats-members
> 



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to