December 6, 200520 yr I'm sure that one of the biggest uses of the GetAsText function is to extract the filename/path from a container field that references to a file. Which works fine for me, but it only returns the file name, but not the path. I'm using this function in a calculated field GetAsText (containerfield), with results as Text. Upon reading the help section, it states it'll return the "external path information". When I read that, I think the path and filename. Am I wrong in assuming this?? Or is there something I'm not doing right?
December 6, 200520 yr Brent, when I use the GetAsText () on a container field, I yield the following results... size:320,240 image:My Pictures/someimage.gif imagewin:/C:/Documents and Settings/Administrator/My Documents/My Pictures/someimage.gif Maybe your results field should be strechted larger???
December 6, 200520 yr but it only returns the file name, but not the path. the calc will give you the path ONLY if the image (or whatever) is inserted into the container as a reference to the file ( you have to check the relative flag)
December 6, 200520 yr Author Yes, and both of you are absolutely right. I didn't realize that it returned so much info when referenced, like John mentioned. Jeez - sometimes I just don't think!! Well, maybe someone else will learn from my misunderstanding.
Create an account or sign in to comment