Source language: Translate to:

PIPE character

General questions about NeoBook

Moderator: Neosoft Support

PIPE character

Postby dglojnar » Wed Jan 06, 2016 12:32 pm

How can I remove a PIPE character [#124] from text file via Neobook script ?

I try different approach without success...

SearchStr "[#124]" "[data]" "[a]" "" - no result
StrReplace "[data]" "["124]" ";" "[new_string ]" "" - no result

Any idea ?

Point is to make all with Neobook without external progs.


Best regards!
dglojnar
dglojnar
 
Posts: 112
Joined: Sun Apr 03, 2005 10:52 pm

Re: PIPE character

Postby stu » Wed Jan 06, 2016 12:53 pm

This works for me on a TXT file:

Code: Select all
FileToVar "!D:\folder\pipestext.txt" "[tfile]"
StrReplace "[tfile]" "|" "" "[tfile]" ""
FileWrite "!D:\folder\pipestext.txt" "All" "[tfile]"
User avatar
stu
 
Posts: 320
Joined: Wed Aug 07, 2013 11:37 am

Re: PIPE character

Postby dglojnar » Wed Jan 06, 2016 1:20 pm

stu wrote:This works for me on a TXT file:

Code: Select all
FileToVar "!D:\folder\pipestext.txt" "[tfile]"
StrReplace "[tfile]" "|" "" "[tfile]" ""
FileWrite "!D:\folder\pipestext.txt" "All" "[tfile]"


Yep:-)))

Thank you very much, so easy and fast, I forgot FileToVar command:-)))
Once again, thanks:-))

Regards!
dglojnar
dglojnar
 
Posts: 112
Joined: Sun Apr 03, 2005 10:52 pm


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron