PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Jeffrey Ferreira on May 13, 2021, 12:00:46 PM

Title: Reverse Engineer Print @
Post by: Jeffrey Ferreira on May 13, 2021, 12:00:46 PM
Hello All
If I have a text file that contains print @ like this

->print@(0),"Jeff",@(20),"PxPlus",@(50),"Canada"
Jeff                PxPlus                        Canada

I want to convert the string containing the print @ to the nicely formatted with spaces...
is there a way to do that.

Jeff


Title: Re: Reverse Engineer Print @
Post by: Mike King on May 13, 2021, 12:08:44 PM
Print to a memory file then read it back.

->open (1) "*memory*"
->print (1) @(0),"Jeff",@(20),"PxPlus",@(50),"Canada"
->read record (1,ind=0) R$
->print r$
Jeff                PxPlus                        Canada
->print hta(R$)
4A656666202020202020202020202020202020205078506C757320202020202020202020202020202020202020202020202043616E616461
Title: Re: Reverse Engineer Print @
Post by: Jeffrey Ferreira on May 13, 2021, 12:11:22 PM
thank you Mike / that is perfect...