alex at tweedly.net
Sun Aug 28 04:01:49 CDT 2005
Charles Hartman wrote:
> On Aug 27, 2005, at 7:49 PM, Alex Tweedly wrote:
>> The format function is indeed very useful - but I don't think it can
>> be used to solve the particular problem of adding spaces after a
>> string to fill it out to a specified length.
>> Or at least - when I was looking at the problem the other day, one
>> of the alternatives I considered was "format", but I couldn't see a
>> way to use it to solve this problem :-)
> It would work if the "incantation" argument of format() would accept
> a variable name, but I can't find a way to make it do that . . .
You can't do format("%<myVar>d", otherVar).
But you can do
put "%" & myVar & "d" into temp
Does that help ?
P.S. I still don't see how that let's you solve the initial problem here
Alex Tweedly http://www.tweedly.net
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005
More information about the use-livecode