Subject Entreyfield Editor Question
From Norman Snowden <duluth@msn.com>
Date Sat, 16 Apr 2022 11:33:36 -0400
Newsgroups dbase.getting-started


How do I get the Editor to print a variable from an Array?

The Command Window shows the correct value "Avery".
The Editor just prints a litteral of the variable.

  function PUSHBUTTON9_onClick()
   Go Top
         Clear        
         Count for relative = true to Rle         
    if Rle = 0
             verdict = msgbox("There are no Relatives Listed")
             return
    endif
         Declare Relt[Rle,8]
    
        Copy to Array Relt fields Lname, Fname, Mi, city, phone,  birthday, lascontact, theirage For relative = true    
         Asort(Relt,1)
        
        ? Relt[1,1], "kkk"  &&  Prints OK in Command Window as "Avery"
   wait
  ************
       form.editor1.value = ''        
       fFile = new file()
       fFile.create('plot_Relatives.txt')
       crlf = chr(13)+chr(10)            
       form.editor1.value += "  " + crlf
       form.editor1.value += '   ' +  ' Relatives' + '  ' + crlf  && Prints Relatives OK           
          
      form.editor1.value += '   ' +  'Relt[1,1] ' + '  ' + crlf  && Does not print "Avey"
      return
      
     Any  comment appreciated
      Thanks, Norman