Kiele Posted August 31, 2007 Posted August 31, 2007 Is there a way that you can pull the comments that you type under the Field (in Define Fields), other than doing a DDR? TIA Kia
David Jondreau Posted August 31, 2007 Posted August 31, 2007 The FieldComment function does this. http://www.filemaker.com/help/Functions%20Ref29.html
Kiele Posted August 31, 2007 Author Posted August 31, 2007 Hi David, Thank You Sir. I went right by that function. I was convinced that it was going to be a "Get Function" Thanks Again, Kia
lnadon Posted September 30, 2008 Posted September 30, 2008 I am trying to output the field comment but when I use the syntax: FieldComment (filename;fieldName) I get an interrogation mark instead of the comment (I have made sure the size of the field is large enough to display the comment). The field to display the comment that I am trying to put on a layout is defined as follows: fieldcomment("Filename";"fieldname"). Also tried fieldcomment("Filename";"Tablename::Fieldname") and fieldcomment(Get(Filename);"Tablename::Fieldname") Any idea what I'm doing wrong?
David Jondreau Posted September 30, 2008 Posted September 30, 2008 fieldcomment(Get(Filename);"Tablename::Fieldname") Any idea what I'm doing wrong? I'd say it's those quotes around the field name. Try: fieldcomment(Get(Filename);Tablename::Fieldname)
lnadon Posted September 30, 2008 Posted September 30, 2008 Thanks for your reply but lthough they appear to be unnecessary, removing the quotes around the field name doesn't help. I did get rid of the interrogation mark by changing the storage option to make it a global field but now the field comes out blank (I have, of course, put a comment in the field I am using for testing).
David Jondreau Posted September 30, 2008 Posted September 30, 2008 Hm. You do need the quotes on both the file and field name. I wonder what that says about the how the function operates...usually you don't need quotes around a field name. FieldComment("mysandbox"; "table::fieldname") works correctly in my file.
lnadon Posted September 30, 2008 Posted September 30, 2008 Any chance you could send me a small sample database so I can see the syntax correctly. It's probably some very trivial thing that I'll see right away in a sample file. Thanks.
lnadon Posted October 1, 2008 Posted October 1, 2008 Yes, this did help! Since it worked and I couldn't see any difference in the syntax, I realized the problem was in my file. Turns out that you cannot have a space in the filename. I usually avoid spaces in filenames but this file was developed by someone else and the filename consisted of 2 words; removing the second word did the trick. Thanks for your help!
Vaughan Posted October 1, 2008 Posted October 1, 2008 File names can have spaces, but not periods. Periods breaks the Get( FileName ) function.
lnadon Posted October 3, 2008 Posted October 3, 2008 Right Vaughan, it was not the space in the name finally. There is just something very unreliable about the fieldcomment function. I can seem to figure out why sometimes it works, sometimes not. One example of how weird it is is that if I erase the comment in the field defintion, it will still appear on the layout! And if I try to change the def, the old def still appears. I have to delete the field that displays the comment and then sometimes I'm back to square zero because it will no longer display anything. Grrrrrrrrr. I think I'll use a repeating field to document the fields as someone else suggested.
Lee Smith Posted October 3, 2008 Posted October 3, 2008 Maybe this would be better if done using Tool Tip.
Recommended Posts
This topic is 5955 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now