An even easier method is to GetAsText ( containgerField ). This
returns the name of the file.
Jeff
On May 8, 2009, at 8:50 AM, Richard S. Russell wrote:
On 2009 May 8, at 1:28, Tim Mansour wrote:
2009/5/8 Richard S. Russell <[email protected]>:
I'd like to be able to display
for my users which kind of thing they've got in that field, but I
couldn't
find either a Get or Design function that would tell me.
Richard you can use the GetLayoutObjectAttribute function to help
here:
GetLayoutObjectAttribute ( "object name" ; "content" )
If you've inserted a file into your container you'll get the file
name returned:
Graph Modelling.pdf
However, if you've inserted a reference to the file you'll get 2
lines
like this:
file:Graph Modelling.pdf
filemac:/Mac HD/Users/tim/Documents/FileMaker/Graph Modelling.pdf
Thanks, Tim.
So, just to pick your brain 1 more time, would it be safe to say
that a test for the existence of a return character would yield
conclusive proof that I'm dealing with a reference instead of an
actual file?
--
Jeff Hough * Sitecraft * 503.525.1084 * www.sitecraft.com
Certified FileMaker 7/8/9 Developer