dbTalk Databases Forums  

default text formatting

comp.databases.filemaker comp.databases.filemaker


Discuss default text formatting in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Averbach
 
Posts: n/a

Default default text formatting - 10-23-2006 , 01:20 PM






I have a stanard database with Name, Address, Phone etc etc and I'm
having the following problem:

People cut and paste text in from their email and the internet, and
that formatted text goes into the fields of the database and doesn't
match the settings for the field.

I tried to insist on specific formatting using the calucated result
field, but then it's permanently formatted that way in every instance
of the text in question.

Is there some calculated result that REMOVES FORMATTING--kind of like
paste unformatted text so that the formatting will merely be the
formatting of the field they are pasting into?

Thanks.

David Averbach


Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: default text formatting - 10-23-2006 , 01:29 PM






From the docs:
=====================
TextFormatRemove(text)

Removes all text formatting from text in a single action. All fonts, styles,
font sizes, and font colors are removed from the specified text.
=====================
Use this function as part of an auto-enter calculation for the field.


"David Averbach" <dnaverbach (AT) mac (DOT) com> wrote

Quote:
I have a stanard database with Name, Address, Phone etc etc and I'm
having the following problem:

People cut and paste text in from their email and the internet, and
that formatted text goes into the fields of the database and doesn't
match the settings for the field.

I tried to insist on specific formatting using the calucated result
field, but then it's permanently formatted that way in every instance
of the text in question.

Is there some calculated result that REMOVES FORMATTING--kind of like
paste unformatted text so that the formatting will merely be the
formatting of the field they are pasting into?

Thanks.

David Averbach




Reply With Quote
  #3  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: default text formatting - 10-23-2006 , 01:49 PM



At least with FMP6, a script with the line :
Set Field(myfield, myfield)
gives plain text.
Remi-Noel

"Bill Marriott" <wjm (AT) wjm (DOT) org> a écrit dans le message de news:
n8udnRhQdt_qlqDYnZ2dnUVZ_vednZ2d (AT) comcast (DOT) com...
Quote:
From the docs:
=====================
TextFormatRemove(text)

Removes all text formatting from text in a single action. All fonts,
styles, font sizes, and font colors are removed from the specified text.
=====================
Use this function as part of an auto-enter calculation for the field.


"David Averbach" <dnaverbach (AT) mac (DOT) com> wrote in message
news:1161627611.736308.87830 (AT) f16g2000cwb (DOT) googlegroups.com...
I have a stanard database with Name, Address, Phone etc etc and I'm
having the following problem:

People cut and paste text in from their email and the internet, and
that formatted text goes into the fields of the database and doesn't
match the settings for the field.

I tried to insist on specific formatting using the calucated result
field, but then it's permanently formatted that way in every instance
of the text in question.

Is there some calculated result that REMOVES FORMATTING--kind of like
paste unformatted text so that the formatting will merely be the
formatting of the field they are pasting into?

Thanks.

David Averbach






Reply With Quote
  #4  
Old   
Bill Marriott
 
Posts: n/a

Default Re: default text formatting - 10-23-2006 , 05:33 PM



Remi,

FYI: The Set Field(myfield, myfield) technique no longer works in FileMaker
7 and later. Text formatting is preserved in calculations.

"Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote

Quote:
At least with FMP6, a script with the line :
Set Field(myfield, myfield)
gives plain text.

TextFormatRemove(text)


Is there some calculated result that REMOVES FORMATTING--kind of like
paste unformatted text so that the formatting will merely be the
formatting of the field they are pasting into?



Reply With Quote
  #5  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: default text formatting - 10-24-2006 , 01:51 AM



Thanks, Bill, for this information.
Remi-Noel

"Bill Marriott" <wjm (AT) wjm (DOT) org> a écrit dans le message de news:
V-6dnYvzgvy13qDYnZ2dnUVZ_qmdnZ2d (AT) comcast (DOT) com...
Quote:
Remi,

FYI: The Set Field(myfield, myfield) technique no longer works in
FileMaker 7 and later. Text formatting is preserved in calculations.

"Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote in message
news:453d0eca$0$23813$426a74cc (AT) news (DOT) free.fr...
At least with FMP6, a script with the line :
Set Field(myfield, myfield)
gives plain text.

TextFormatRemove(text)


Is there some calculated result that REMOVES FORMATTING--kind of like
paste unformatted text so that the formatting will merely be the
formatting of the field they are pasting into?





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.