[Gambas-user] Super quickie - array equality

Fabien Bodard gambas.fr at ...626...
Wed Oct 21 09:31:21 CEST 2015


You can try with an multi object style :

Dim MyArray as integer[][] = [[1],[2]]


Print MyArray[0][0] '=1
Print "X=" & MyArray.Count '=2
Print "Y=" & MyArray[0].Count '=1




2015-10-21 3:30 GMT+02:00 adamnt42 at ...626... <adamnt42 at ...626...>:
> On Wed, 21 Oct 2015 11:42:59 +1030
> "adamnt42 at ...626..." <adamnt42 at ...626...> wrote:
>
>> If anyone is awake.
>>
>> Can I test that an integer array  of the form (x,y) is equal to [0,0] simply? In other words
>>
>>   Dim MyDimensions as Integer[]=[0,0]
>> (some user stuff happens)
>>   If MyDimensions=[0,0} then ...
>>
>> tia
>> bruce
>> --
>> B Bruen <adamnt42 at ...3379... (sort of)>
>
> Damn. It doesn't work. Oh well. :-(
> b
>
> --
> B Bruen <adamnt42 at ...3379... (sort of)>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list