Re: Three simple FMP questions
Re: Three simple FMP questions
- Subject: Re: Three simple FMP questions
- From: Shane Stanley <email@hidden>
- Date: Mon, 09 Jul 2001 11:45:32 +1000
On 9/7/01 11:10 AM +1000, Paul Berkowitz, email@hidden, wrote:
>
1) Is there any way to get the file path of an open FMP document, so that
>
you can close it, then re-open it later? Or any other way to do the same
>
thing?
No. This has been much complained about.
>
>
2) Is 'database' _really_ an element of 'document', in the usual meaning?
Depends on the usual meaning of "usual meaning". ;-)
>
Can you have more than database belonging to the same document?
No. But that doesn't mean it can't be an element.
>
It seems to me that 'document' and 'database'
>
refer to the same object except insofar as you need to get a particular
>
property you have to use one designation or the other, yes?
A database is all the data; a document is the found set of records.
>
>
3) I don't seem to be able to 'get' every database (or document), nor any
>
property, such as 'name', of 'every database' (or document) but I can 'set n
>
to count (every document)', then do a repeat loop to get the name of each
>
one. Is this the only way to do it?
I believe so. I suspect this is an artifact of the fact that you don't
actually have to specify a database or document at all (if you want to live
dangerously).
>
That in itself seems odd, and it's
>
still not helping find a way to close and reopen any of them.
I don't think it's to be found.
>
>
Does anyone have any idea why such a nutty object model was concocted? Is
>
there some advantage?
As it was explained to me here by someone who thought it perfectly natural,
database refers just to a whole lot of data, whereas document refers to more
than that, in that it has information as to how it's displayed. Hence,
database is an element of document. Doesn't seem at all natural to me, but
maybe that's just me.
FWIW, you can easily avoid the whole conundrum by just referring to document
x whenever you want to refer to a found set and database x when you want to
refer to a database.
--
Shane Stanley, email@hidden