SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Replace tab in a string by a comma

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Replace tab in a string by a comma
Author Message
Pierre Dupuis



Joined: 22 Aug 2000
Posts: 85

Post Replace tab in a string by a comma Reply with quote

Please could you help me on how to replace "tab" in a string by a comma.

Thanks.

Wed Mar 21, 2001 11:00 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Replace tab in a string by a comma Reply with quote


If you have a "small" string with one tab you can find out position of this tab in the string using InStr or Pos statenment
Pos "my string here...", "\t", position

Then use Replace statement to replace it
Replace "my string here...", position, 1, ",", new_string

If you have multiple tabs you can do it in a loop using LoopUntil or LoopWhile statements

If you have a "large" string with many tabs, you can save it in a file FileSave then use FileReplaceEx statement to do it in one shot. FileReplaceEx is lighting fast and robust. After that use FileReadAll to read it back.

: Please could you help me on how to replace "tab" in a string by a
: comma.

: Thanks.

Wed Mar 21, 2001 2:10 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.