cinolas Posted October 3, 2002 Posted October 3, 2002 I am trying to set some text in a text field to bold by using a script. I have to concatenate many fields into a huge text field and I whish to make parts of it bold. The script goes something like that: Set BigTextField to ("Name Number" & "CR" Loop Set BigTextField to (BigTextField & "CR" & Name & " " & Number) Go to next record (exit after last) End Loop This would create a table like Name Number Mike 45 July 76 etc... I whish to make the column header in bold like so : Name Number Mike 45 July 76 etc... Any ideas on how to achiev this ?
CobaltSky Posted October 4, 2002 Posted October 4, 2002 Sadly, there is no provision in FMP for specifying/applying formatting selectively within a field as a result of a calculation. In the case you describe, there may be a way to achieve a similar effect, however. What you could consider is placing the bold heard text into a separate field 'BigBoldTextField' and then displaying the two fields on your layouts as merge text, with the appropriate formatting applied to the relevant merge flags. The resulting layout text would look like: <<BigBoldTextField>> <<BigTextField>> When viewed in Browse Mode, however, the result will be in the format you require.
cinolas Posted October 4, 2002 Author Posted October 4, 2002 Unfortunately the whole text has to be contained in one field... I can change text to bold within a text field (in browse mode) and it will keep the format. It seems weird that I can achieve this manually but not automatically. Thanks for the reply.
Recommended Posts
This topic is 8090 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