Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > TrueUpdate 2.0

 
 
Thread Tools Display Modes
  #1  
Old 03-16-2005
Ken Gartner Ken Gartner is offline
Forum Member
 
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  
Old 03-16-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
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
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
attempt to index a string value csd214 AutoPlay Media Studio 5.0 8 08-08-2004 02:23 AM


All times are GMT -6. The time now is 07:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software