dbTalk Databases Forums  

Count characters in Text Field

comp.databases.filemaker comp.databases.filemaker


Discuss Count characters in Text Field in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
brad anderson
 
Posts: n/a

Default Count characters in Text Field - 11-19-2006 , 04:40 PM






Hi Everyone

Is there a way to count characters in a text field in and display it in real
time? Such as in an SMS text field which needs to be 160 characters or
less?

Many thanks

BA


Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Count characters in Text Field - 11-19-2006 , 06:27 PM






using the helpfile, looking under text functions you would have found

Length The number of characters in the specified text, including all spaces,
numbers, and special characters.

Ursus

"brad anderson" <whaletx (AT) hotmail (DOT) com> schreef in bericht
news:C187287E.33E7D%whaletx (AT) hotmail (DOT) com...
Quote:
Hi Everyone

Is there a way to count characters in a text field in and display it in
real
time? Such as in an SMS text field which needs to be 160 characters or
less?

Many thanks

BA




Reply With Quote
  #3  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Count characters in Text Field - 11-19-2006 , 11:44 PM



In article <4560f682$0$55358$dbd4b001 (AT) news (DOT) wanadoo.nl>, "Ursus"
<ursus.kirk (AT) wanadoo (DOT) nl> wrote:
Quote:
"brad anderson" <whaletx (AT) hotmail (DOT) com> schreef in bericht
news:C187287E.33E7D%whaletx (AT) hotmail (DOT) com...
Hi Everyone

Is there a way to count characters in a text field in and display it in
real
time? Such as in an SMS text field which needs to be 160 characters or
less?

using the helpfile, looking under text functions you would have found

Length The number of characters in the specified text, including all spaces,
numbers, and special characters.
Except that you can'ty use that to display the number of character in
"real time". There's no way to have a constantly updating number as you
type, so you'd have to use the Length function via a script attached to
a "Check Length" button ... or a Calculation field which will update
when you stop editing the record.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #4  
Old   
Ursus
 
Posts: n/a

Default Re: Count characters in Text Field - 11-20-2006 , 06:58 AM



He could, if he was really desperate, create a script that updates every
second. Start it, start typing and stopping it (as a first step in a script
for his 'next step to take' action) Which is not quite state of the art, and
potentialy could lead to other problems.

Urus

"Helpful Harry" <helpful_harry (AT) nom (DOT) de.plume.com> schreef in bericht
news:201120061844539288%helpful_harry (AT) nom (DOT) de.plume.com...
Quote:
In article <4560f682$0$55358$dbd4b001 (AT) news (DOT) wanadoo.nl>, "Ursus"
ursus.kirk (AT) wanadoo (DOT) nl> wrote:

"brad anderson" <whaletx (AT) hotmail (DOT) com> schreef in bericht
news:C187287E.33E7D%whaletx (AT) hotmail (DOT) com...
Hi Everyone

Is there a way to count characters in a text field in and display it in
real
time? Such as in an SMS text field which needs to be 160 characters or
less?

using the helpfile, looking under text functions you would have found

Length The number of characters in the specified text, including all
spaces,
numbers, and special characters.

Except that you can'ty use that to display the number of character in
"real time". There's no way to have a constantly updating number as you
type, so you'd have to use the Length function via a script attached to
a "Check Length" button ... or a Calculation field which will update
when you stop editing the record.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)



Reply With Quote
  #5  
Old   
Helpful Harry
 
Posts: n/a

Default Re: Count characters in Text Field - 11-20-2006 , 02:07 PM



In article <4561a678$0$18239$dbd41001 (AT) news (DOT) wanadoo.nl>, "Ursus"
<ursus.kirk (AT) wanadoo (DOT) nl> wrote:

Quote:
He could, if he was really desperate, create a script that updates every
second. Start it, start typing and stopping it (as a first step in a script
for his 'next step to take' action) Which is not quite state of the art, and
potentialy could lead to other problems.
Ewwww... that's the silly old "Pause [1sec]" script. It makes data
entry awful and highly annoying to do - when the script is running the
computer "forgets" what you're typing.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #6  
Old   
brad anderson
 
Posts: n/a

Default Re: Count characters in Text Field - 11-20-2006 , 02:49 PM



On 21/11/06 7:07 AM, in article
211120060907461164%helpful_harry (AT) nom (DOT) de.plume.com, "Helpful Harry"
<helpful_harry (AT) nom (DOT) de.plume.com> wrote:

Quote:
In article <4561a678$0$18239$dbd41001 (AT) news (DOT) wanadoo.nl>, "Ursus"
ursus.kirk (AT) wanadoo (DOT) nl> wrote:

He could, if he was really desperate, create a script that updates every
second. Start it, start typing and stopping it (as a first step in a script
for his 'next step to take' action) Which is not quite state of the art, and
potentialy could lead to other problems.

Ewwww... that's the silly old "Pause [1sec]" script. It makes data
entry awful and highly annoying to do - when the script is running the
computer "forgets" what you're typing.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Thanks guys....Yes I did check the help and try that first. Thanks for the
replies.

BA



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.