Cory Posted May 24, 2005 Report Share Posted May 24, 2005 I have a date as a numeric value in a variable and in an instance where it is less than 10 want to prepend it with a "0" zero so when files are sorted by name they will appear chrono. I convert the string to text but only see a append option in the modify string. Isn't there somewhere I can simply glue text and or variables into a new variable? It just seems that the ability to modify strings seems very limited and I think I must be missing something. Any suggestons? Quote Link to comment Share on other sites More sharing options...
floyd Posted May 24, 2005 Report Share Posted May 24, 2005 Look into the Replace Substring command. For example: Replace "%T1%" with "0%T1%" in %T1% Quote Link to comment Share on other sites More sharing options...
Cory Posted May 24, 2005 Author Report Share Posted May 24, 2005 Wouldn't you know as soon as I make a post I figure it out. I was thinking it should be a 'modify' thing when I can do it with the "Set String" and enter "0%T1%". Duh. I don't see a replace command and that looks interesting. Where is it? I'll try to check that out now. Thanks! Quote Link to comment Share on other sites More sharing options...
floyd Posted May 24, 2005 Report Share Posted May 24, 2005 It is located within the Variable Modify String dialog. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.