I've declared an array like this:

Public QueueObject[1024] As String

and tried to clear it in a procedure like this:

QueueObject.Clear()

but receive the error "Embedded array...".

I just need to erase all the values in the array so I can reassign new 
ones. Obviously I can do this manually, but it looked like the .Clear 
method would do the trick. Any idea why it is throwing this error?

I looked over the documentation here:

http://gambasdoc.org/help/cat/arraydecl?v3

and see that there are local arrays and embedded arrays. I guess some or 
all array methods are only available for local arrays? The docs are a 
bit confusing to me on this, but it's probably because I'm out of my 
depth. I can otherwise read and write to the array normally from the 
procedure, and do a function such as "QueueSorted = 
QueueObject.Sort(gb.Descent)".

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to