dbTalk Databases Forums  

Spacing Text

comp.databases.filemaker comp.databases.filemaker


Discuss Spacing Text in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rich Sagall
 
Posts: n/a

Default Spacing Text - 10-02-2005 , 01:09 PM






I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks

Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Spacing Text - 10-02-2005 , 01:33 PM






Rich Sagall wrote on (10/2/2005):

Quote:
I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks
Place the name and date on the layout as separate fields. No sliding.

Matt

--



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

Default Re: Spacing Text - 10-02-2005 , 02:52 PM



In article <1h3t5j0.1pv9yy213509moN%rich.sagall (AT) pobox (DOT) com>,
rich.sagall (AT) pobox (DOT) com (Rich Sagall) wrote:

Quote:
I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks
NEVER EVER EVER use spaces to align text!
Not in FileMaker, not in Word, not in anything.

If you want to align text, use Tabs, not spaces.

Here in FileMaker you can simply put the fields on the layout wherever
you want them to appear.

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


Reply With Quote
  #4  
Old   
Rich Sagall
 
Posts: n/a

Default Re: Spacing Text - 10-02-2005 , 03:24 PM





Helpful Harry <helpful_harry (AT) nom (DOT) de.plume.com> wrote:

Quote:
In article <1h3t5j0.1pv9yy213509moN%rich.sagall (AT) pobox (DOT) com>,
rich.sagall (AT) pobox (DOT) com (Rich Sagall) wrote:

I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks

NEVER EVER EVER use spaces to align text!
Not in FileMaker, not in Word, not in anything.

If you want to align text, use Tabs, not spaces.

Here in FileMaker you can simply put the fields on the layout wherever
you want them to appear.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
The problem is that these


Reply With Quote
  #5  
Old   
Rich Sagall
 
Posts: n/a

Default Re: Spacing Text - 10-02-2005 , 03:24 PM



Helpful Harry <helpful_harry (AT) nom (DOT) de.plume.com> wrote:

Quote:
In article <1h3t5j0.1pv9yy213509moN%rich.sagall (AT) pobox (DOT) com>,
rich.sagall (AT) pobox (DOT) com (Rich Sagall) wrote:

I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks

NEVER EVER EVER use spaces to align text!
Not in FileMaker, not in Word, not in anything.

If you want to align text, use Tabs, not spaces.

Here in FileMaker you can simply put the fields on the layout wherever
you want them to appear.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
The problem is that this portion of the document is in the middle of the
document. I suppose I could break the document into to two pieces, but
that seems inelegant. Any other suggestions?


Reply With Quote
  #6  
Old   
FP
 
Posts: n/a

Default Re: Spacing Text - 10-02-2005 , 08:58 PM



Try using a mono spaced font where a space and a letter use the same
amount of space but I would have to agree, splitting it into multiple
items makes much more sense.


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

Default Re: Spacing Text - 10-03-2005 , 12:14 AM



In article <1h3tc6z.icc2271x689y6N%rich.sagall (AT) pobox (DOT) com>,
rich.sagall (AT) pobox (DOT) com (Rich Sagall) wrote:

Quote:
Helpful Harry <helpful_harry (AT) nom (DOT) de.plume.com> wrote:

In article <1h3t5j0.1pv9yy213509moN%rich.sagall (AT) pobox (DOT) com>,
rich.sagall (AT) pobox (DOT) com (Rich Sagall) wrote:

I am creating a document for individuals to sign. On one line there are
two blanks. Below the first blank the signer's name, below the second
blank is the date.

________________ _________
John Jones 10/02/2005

The problem I am having is adjusting the number of spaces between the
name and the date so the date appears in the right spot.

Thanks

NEVER EVER EVER use spaces to align text!
Not in FileMaker, not in Word, not in anything.

If you want to align text, use Tabs, not spaces.

Here in FileMaker you can simply put the fields on the layout wherever
you want them to appear.

The problem is that this portion of the document is in the middle of the
document. I suppose I could break the document into to two pieces, but
that seems inelegant. Any other suggestions?
A layout can have as many different elements as you need - there is no
"breaking a document".

Basically your layout would look something like:

[presumably a block of text]

---------------- ------------
[NameField] [Date Field]


Or if you're not using fields you can simply use two new text blocks -
a small one with just the Name typed in and another small one with the
Date or date symbol in it. These small text blocks and the lines can be
moved wherever you want to put them on the page.



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


Reply With Quote
  #8  
Old   
manet
 
Posts: n/a

Default Re: Spacing Text - 10-03-2005 , 03:15 PM



Rich Sagall <rich.sagall (AT) pobox (DOT) com> wrote:

Quote:
Any other suggestions?
as says harry, the best is good fomatting of your text, with the help of
globals and calculatted fields..

If really not possible, the problem is that basically, FMP don't have a
"repeat (n) character" function

2 solutions :

- with functions, the only way is case (length chain = x, " ", etc...)
; may be written in a spreasdsheet...
- if you can use a script, a loop ajusting the lenght is a better way.

--
Philippe Manet


Reply With Quote
  #9  
Old   
42
 
Posts: n/a

Default Re: Spacing Text - 10-03-2005 , 04:47 PM



In article <20051003221546581690@[10.0.0.1]>, pmanet (AT) invivo (DOT) edu says...
Quote:
Rich Sagall <rich.sagall (AT) pobox (DOT) com> wrote:

Any other suggestions?

as says harry, the best is good fomatting of your text, with the help of
globals and calculatted fields..

If really not possible, the problem is that basically, FMP don't have a
"repeat (n) character" function

2 solutions :

- with functions, the only way is case (length chain = x, " ", etc...)
; may be written in a spreasdsheet...
- if you can use a script, a loop ajusting the lenght is a better way.


Actually with FM7Dev or FM8Adv where you can define functions its
trivial to define a "repeat (string, n) function"

define your repeat function, create 2 parameters, string and n

string & if(n>1, repeat(string,n-1),"")

Which calls itself recursively adding a copy of string n-times.

Note: as defined If n<=0 it behaves the same as if n=1, this is easy
enough to change if you want it to do something else.)

A more efficient (and more complex) version could be defined if you use
it extensively and want to boost performance.

Alternatively for special purpose operations where n is fairly small and
you know what you need 'repeated' you could define a function:

repeat(n)

left("-- 30 spaces go here",n)

so repeat(n) would give you a string of 0 to 30 spaces (0 <= n <= 30).
You can use this quick and dirty method even without a developer edition
of filemaker, you'll have to use left('spaces',n) instead of the nice
function name. (You can put the actual spaces into a global so you don't
have to have them copied into all the scripts.

-cheers,
Dave



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

Default Re: Spacing Text - 11-22-2005 , 06:00 AM



LOL. I don't know why

________{tab}__________{return}
<<Name>>{tab}<<Date>>{return}

with a tab stop set is not a sufficient solution.

No extra fields, globals, or any of that business.

Bill

"42" <nospam (AT) nospam (DOT) com> wrote

Quote:
In article <20051003221546581690@[10.0.0.1]>, pmanet (AT) invivo (DOT) edu says...
Rich Sagall <rich.sagall (AT) pobox (DOT) com> wrote:

Any other suggestions?

as says harry, the best is good fomatting of your text, with the help of
globals and calculatted fields..

If really not possible, the problem is that basically, FMP don't have a
"repeat (n) character" function

2 solutions :

- with functions, the only way is case (length chain = x, " ", etc...)
; may be written in a spreasdsheet...
- if you can use a script, a loop ajusting the lenght is a better way.



Actually with FM7Dev or FM8Adv where you can define functions its
trivial to define a "repeat (string, n) function"

define your repeat function, create 2 parameters, string and n

string & if(n>1, repeat(string,n-1),"")

Which calls itself recursively adding a copy of string n-times.

Note: as defined If n<=0 it behaves the same as if n=1, this is easy
enough to change if you want it to do something else.)

A more efficient (and more complex) version could be defined if you use
it extensively and want to boost performance.

Alternatively for special purpose operations where n is fairly small and
you know what you need 'repeated' you could define a function:

repeat(n)

left("-- 30 spaces go here",n)

so repeat(n) would give you a string of 0 to 30 spaces (0 <= n <= 30).
You can use this quick and dirty method even without a developer edition
of filemaker, you'll have to use left('spaces',n) instead of the nice
function name. (You can put the actual spaces into a global so you don't
have to have them copied into all the scripts.

-cheers,
Dave




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.