Adding Information to LogFiles

Hi, Im trying to add some information to the logfile, but when it adds it to the line it will split the line.. my colde line is :
Put Var1 && comma && Var2 && Var3 && crlf after file logfileTest

So when it prints to logfile it will be:

Var1 , Var2
Var3

Instead of
Var1, Var2 Var3

any ideas?

Thanks
OK, update I realized that my Var2 has a control-M in there, since it read the data, so how can I remove that control-M from my variable..

Thanks

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    delete return from var2
    
  • SenseTalkDougSenseTalkDoug ForumAdmin admin
    In SenseTalk the return constant uses the Mac/Linux/Unix definition of the return character, though (which is technically a linefeed character or Control-J). So to delete a carriage return character (Control-M) you'll need to do one of these:
    delete CR from Var2 -- or CReturn or CarriageReturn
    delete returnKey from Var2 -- returnKey in eggPlant is also defined as a carriage return
    
Sign In or Register to comment.