comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Formatting string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Formatting string [message #52022] Fri, 22 December 2006 00:26
Erik[1] is currently offline  Erik[1]
Messages: 23
Registered: December 2006
Junior Member
Hi everyone,

I have a question about formatting a string in IDL. I have a var-string
which contains an integer value (like this '12' or '312').
Unfortunately I need a string with four characters. If the integer
value isn't four characters long, I want some 0's in front of it (like
this; '0012' or '0312'). Is there any simple way of doing this, without
parsing the string?

Thanks in advance!

Erik
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Image segmentation programs in IDL?
Next Topic: Number of points inside a contour curve

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:47:32 PDT 2025

Total time taken to generate the page: 0.93651 seconds