| Subject |
Re: Entreyfield Editor Question |
| From |
Ken Mayer <dbase@nospam.goldenstag.net> |
| Date |
Sat, 16 Apr 2022 11:02:06 -0700 |
| Newsgroups |
dbase.getting-started |
On 4/16/2022 8:33 AM, Norman Snowden wrote:
>
> 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
You have too many quotes in there. I expect what is showing in your
editor is the text: Relt[1,1] because you put quotes around it.
form.editor1.value += ' ' + Relt[1,1] + ' ' + crlf
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
|
|