title: Concatenating String and Saving to Text File using PowerBuilder
body: <p>What is the problem in my PB script below, the text file returns an output of "H NAME" - opening and closing quote was included inside the text file upon saving and it should have been H NAME only. I've already run in debug mode and the value of ls_Message is H    NAME which is correct but when saving into the text file it became "H    NAME". What happened? Below is the script.</p>
  
  <pre><code>ls_Message = "H" 
  ls_Message += "~t"
  ls_Message += ls_ITSUPPORTNAME
  
  ll_hdr_insert = dw_Outbound.InsertRow(0)
  dw_Outbound.SetItem(ll_hdr_insert,'message',ls_Message)         
  IF Trim(ls_Message) &lt;&gt; "" OR Len(Trim(ls_Message)) &gt; 0 THEN ls_Message = ""
  
  FilePath = String(dw_path.Object.outboundfilepath[1])
  FileName = ls_FilePrefix + String(ldt_TranDate,'YYYYMMDDHHMM') +'_'+ ls_RefereceNum + '.txt'
  FileDir = FilePath + '/' + FileName
  dw_Outbound.SaveAs(FileDir, TEXT!, FALSE)
  </code></pre>