Creating fixed field length records

Phil Davis revdev at pdslabs.net
Sat Oct 27 13:58:23 EDT 2007


It really IS clever! I'll be using that one.
However, it needs a small tweak to yield the correct length string (see 
below).

Phil Davis


Stephen Barncard wrote:
> Now THAT is clever!
>
>> Hi Len,
>>
>>> While I'm at it, if I DO have to create a string of <record length> 
>>> first, how do I create a string of spaces <record length> long?
>>
>> Another approach:
>>
>>         put empty into recordBuffer
>>         set the itemDelimiter to space
>>         # put empty into item <record length> of recordBuffer
              put space into item <record length> of recordBuffer
>>
>> Rob Cozens CCW
>



More information about the use-livecode mailing list