len of field

Lynch, Jonathan bnz2 at cdc.gov
Thu Aug 25 11:24:47 EDT 2005


Or, if you want the spaces after the characters:

Repeat 14-(the number of characters in tVar) times
  Put space after tVar
End repeat


Doing it this way, if the number of characters in tVar >= 14, then the
repeat loop just won't execute, and tVar will not be touched. If the
number of characters in tVar < 14, then the repeat loop will execute,
and add in the correct number of spaces.


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Lynch,
Jonathan
Sent: Thursday, August 25, 2005 11:18 AM
To: How to use Revolution
Subject: RE: len of field



-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Paul
Salyers
Sent: Thursday, August 25, 2005 11:12 AM
To: use-revolution at lists.runrev.com
Subject: len of field

Dear Programmers,

I need to find out how to add spaces to a field length if the number of 
characters are less than 14 to equal 14 charters.

I'm using this:

if the number of char  of tVar < 14 then (I need to add spaces to equal
14 
char)



Paul Salyers
PS1 - Senior Rep.
PS1 at softseven.org
Http://ps1.SoftSeven.org  


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list