Fox should not try to evaluate aList[1], it should just add the property to the listbox object so I can later populate it with an array.
It has not happen again since I rebuilt, leaving the code unchanged.
-----Original Message----- From: Peter Cushing [mailto:pcushing .AT. rajan-group DOT co.uk] Sent: Wednesday, June 30, 2004 11:01 AM To: ProFox Email List Subject: Re: Error 45
aList[1] must not be a character type. Perhaps you are selecting out some info into the array and get no results, so the array is empty, ie .f. Why not try this before the addproperty. messagebox(type("aList[1]"))
Peter
----- Original Message ----- From: "Patrick Bibro" <pbibro@onlineltc.com> To: "'ProFox Email List'" <profox .AT. leafe DOT com> Sent: Wednesday, June 30, 2004 4:54 PM Subject: Error 45
Opps, forgot to change the subject.
Why would I get Error 45? - "Not a character expression."
The error reports to be caused by this code in the Init of a Listbox:
this.AddProperty("aList[1]")
This happened a couple times after a recent build in different listbox classes. It has not reoccured in any one class.
[excessive quoting removed by server]
©2004 Patrick Bibro |