Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    14

    Is there formatted string (i.e., printf) capability?

    I need to produce columnar String data, where each column is supposed to be a certain number of characters in width (padded with spaces as needed). This is something that printf() excels at, but I do not find any formatting capability in True Update 2.0. I suppose I could write my own using String.Length, String.Repeat, String.Concat, etc., but perhaps TU already supports this operation in some form. How can I create formatted Strings in True Update 2.0?

    Thanks for any ideas. Regards,

    Ken Gartner

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    The underlying Lua language has string.format (note the lower-case syntax). It works identically to printf. Look here:

    http://www.lua.org/manual/5.0/manual.html#5.3

Similar Threads

  1. attempt to index a string value
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 08-08-2004, 01:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts