Mr.Morning Posted February 22, 2002 Posted February 22, 2002 I am trying to use FieldStyle to change a field to bold based on if another field has an entry. When I use FieldStyle in a calculation, I keeping getting a window popping up telling me that it cannot find my field entry and then highlights under FieldStyle (Database) - If I place quote marks around it, the program then says it cannot find the (layout), and so on. - Placing quote marks around each entry eliminates this message ("Database","Layout", "Field") but in the end it doesn't do anything. *I am filling these fields in with actual information and my naming is correct. Either this isn't the proper use of FieldStyle or I am doing something wrong or all of the above. If anyone has an answer to my problem of making the field bold I would appreciate it.
trevorg Posted February 22, 2002 Posted February 22, 2002 It doesn't change the field. It returns how the field is formatted. Below is the Filemaker Help Text: FieldStyle (dbname, layoutname, fieldname) Parameters dbname - the name of a database that is open on your computer, including any that are opened as a guest layoutname - the name of a layout in the specified database fieldname - the name of a field on the specified layout Important See Design functions for important information about these parameters. Data type returned TEXT Description Returns the field formatting applied to the specified field on the specified layout. If the field is formatted as FieldStyle returns A standard field Standard A standard field with a vertical scroll bar Scrolling A pop-up list Popuplist A pop-up menu Popupmenu Checkboxes Checkbox Radio buttons RadioButton Additionally, if the field has a value list associated with it, FieldStyle returns the name of the value list. Example If the Current Customer field is formatted as a radio button and is associated with the value list Yes/No List on the Data Entry layout in the Customers database, FieldStyle ("Customers", "Data Entry", "Current Customer") returns RadioButton Yes/No List.
Chuck Posted February 22, 2002 Posted February 22, 2002 Check out this link to an answer I wrote for a similar question. http://www.fmforums.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=15;t=001068;p= Bascially, instead of formatting the fields to have different colored text, you would format one to be bold and the other plain text. Chuck
Recommended Posts
This topic is 8381 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