collection.Insert(...) crash
Posted
#1
(In Topic #1398)
Regular

I'm looking at online documentation for the collection.insert(…) method: /comp/gb/collection/insert - Gambas Documentation
My code with a .insert(…) statement is crashing (see screenshot) - the collection $collectRecursive is a property of the class,
defined thus:
Code (gambas)
I checked if a locally defined collection would work, instead of property,, but got the same error :!:
Am I misunderstanding how Insert method for collections is meant to be used :?:
3.19.3 is my ide version.
Thanks in advance,
C.
Posted
Guru

Note where it says in red….
<COLOR color="#FF0000">Since 3.20</COLOR>
It means it does not exist in gambas 3.19.3
You'll need to upgrade gambas to 3.20 or do it a different way.
Posted
Regular

My cinnamon Software Manager only has 3.19.3 listed! Synaptic doesn't even list gambas
So any tips on how to do an upgrade will be gratefully received.
C.
Posted
Guru

Install package home:gambas:stable / gambas3
select your distro and click "Add repository and install manually"
then follow instructions
Posted
Regular

For Mint 21.2 (64bit), which ubuntu should I use :?:
C
Posted
Guru

<HIGHLIGHT highlight="shell">
cat /etc/upstream-release/lsb-release
</HIGHLIGHT>
1 guest and 0 members have just viewed this.




