Thanks.

No -
And BTW selection listbox is longint (not an array)
:)

Chip
On Wed, 24 Apr 2019 10:55:24 -0400, Doug Cottrill via 4D_Tech wrote:
> 
> One other thought- is there an Array Real with the same name as your 
> listbox somewhere else in your DB?
> 
> DKC
> 
>> On Apr 24, 2019, at 10:53 AM, Doug Cottrill via 4D_Tech 
>> <4d_tech@lists.4d.com> wrote:
>> 
>> Chip,
>> 
>> I can’t say for sure why it’s happening- it frankly sounds like a 
>> bug.  However, I may have a possible workaround-
>> Explicitly type the listbox with ARRAY LONGINT(myListboxName;0)
>> My suspicion is that the compiler just defaults to a data type of 
>> ARRAY REAL when it runs into a numeric array, and no one noticed 
>> that it improperly affects selection list boxes (until now).
>> No idea if this will work or not, but worth a shot if you can’t 
>> figure out another workaround.
>> 
>> Good luck!
>> 
>> DKC
>> 
>>> On Apr 23, 2019, at 10:50 PM, Chip Scheide via 4D_Tech 
>>> <4d_tech@lists.4d.com> wrote:
>>> 
>>> that is what I thought....
>>> I have a system I am getting ready to merge with engine. I was 
>>> testing, compiled, one function (a search function) which tests for 
>>> which type of listbox I am working with.
>>> ex:  
>>> if (type ($Listbox_ptr->) = is longint)
>>> do whatever
>>> 
>>> but the search was not working - it was not searching, it does wrk 
>>> just fine interpretedly.
>>> so - I  FSCKed around with it a while, put in alerts and other 
>>> things to try to figure out where and how it was failing when 
>>> compiled.
>>> 
>>> I eventually found that the code was failing where I test for the 
>>> type of listbox, as the above example.
>>> soI placed an alert
>>> Alert(string(type($Listbox->))) just before the txt that was failing.
>>> The Alert showed that the listbox was Type 1 (real) !!!!!!
>>> 
>>> I found this just as I had to leave for the day, so I will rejoin 
>>> the issue tomorrow, but..
>>> 
>>> How does a section listbox get typed (compiled) as Real?!?!!?
>>> 
>>> I have no idea. anyone?
>>> 
>>> Thanks
>>> Chip
>>> 
> 
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to