Allan,
I went along for quite a while before realizing changing the size of the
array didn't clear it too.
I tend to use the array declaration commands to declare, once, and nothing else.
For "else", there is INSERT IN ARRAY, APPEND TO ARRAY, DELETE FROM ARRAY, CLEAR
VARIABLE…
Hi Arnaud,
FYI following example using DELETE FROM ARRAY still doesn't clear the
array variable. Thus it is important to use Clear Variable
ARRAY TEXT(aGrower;0)
APPEND TO ARRAY(aGrower;"One")
APPEND TO ARRAY(aGrower;"Two")
ALERT(String(aGrower)) // Result is "0"
aGrower:=2
ARRAY TEXT(aGrower;0)
ALERT(String(aGrower)) // Result is "2"
APPEND TO ARRAY(aGrower;"One")
APPEND TO ARRAY(aGrower;"Two")
aGrower:=2
DELETE FROM ARRAY(aGrower;1)
DELETE FROM ARRAY(aGrower;1)
ALERT(String(aGrower)) // Result is "2"
Cheers,
Allan Udy
Golden Micro Solutions Ltd, Blenheim, New Zealand
http://www.golden.co.nz<http://www.golden.co.nz>
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************