Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread nando
It depends how you declare the 2D string array. If the first dimension is an Object[] and you add a String[] in each element to make the second dimension, then you can sort the second dimension as a 1D string. -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.s

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
On 05/05/2011 01:39 AM, nando wrote: > ? > Do you mean sorting [0, 1] to [1000, 1] > Because the 1 is the second element of the second dimension > ?? We are misunderstanding each other. I know arrays start at zero when referencing their elements and dimensions outside of the declaration. By seco

[Gambas-user] Signal #11 in Gambas 2

2011-05-04 Thread nando
How to make the 4 line example signal #11 every time: 1. Place a breakpoint on the PRINT "hello" line 2. Run the program (F5) 3. When the program stops at the breakpoint, highlight the word 'String[]' on line 2 -Fernando SUB x() DIM uu AS NEW String[] PRINT "hello" END --

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread nando
? Do you mean sorting [0, 1] to [1000, 1] Because the 1 is the second element of the second dimension ?? -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Thu, 05 May 2011 01:29:25 -0400 Subject: Re: [Gambas-user] gb3: sorting an array-like

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
On 05/05/2011 01:19 AM, nando wrote: > Technically, anything is possible > Give an example of your data to sort perhaps? If I have an array of two dimensions [1000, 10] how would I sort it by the second element of the second dimension for example? -- Kevin Fishburne Eight Virtues www: http://sa

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread nando
Technically, anything is possible Give an example of your data to sort perhaps? -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Thu, 05 May 2011 00:00:25 -0400 Subject: [Gambas-user] gb3: sorting an array-like structure > Is it possible

[Gambas-user] Can someone explain why this works?

2011-05-04 Thread nando
Benoit, Can you explain why this works and the reasoning behind it? I would think there would be dimension issues on some lines DIM i AS Integer, Text AS String[4, 4, 4, 4] Text = ["Just", "test"]'<--how to load Text with multi-dimension text FOR i = 0 TO Text.Max PRINT Text[i]

[Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
Is it possible to sort an array (and/or something structurally similar to an array) by the values of a single dimension? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271

[Gambas-user] Run-time bug

2011-05-04 Thread nando
' Gambas class file PRIVATE test AS String[30, 30] PUBLIC SUB my_test() test = ["Voice", "Logon"] '<---If I REM this, there is no runtime error on next line test[0, 1] = "Logon" '<---Runtime error: Bad Number of Dimensions PRINT test.count END Gambas2 -Fernando --

[Gambas-user] Help on V4l on gambas.

2011-05-04 Thread Hamilton Geminiano Andrioli Junior
Hellow... I just upgrade my sytem to the new ubuntu 11.04. Then, the package gb.v4l simply desapeard... now i can't use WebCam on Gambas. when i use Private WebCam as VideoDevice none hapens.. and there is an error. Please, how to correct this?

Re: [Gambas-user] Issue 63 in gambas: HttpClient doesn't honor https connections

2011-05-04 Thread gambas
Updates: Status: Accepted Labels: -Version -Type-Bug Version-TRUNK Type-Enhancement Comment #1 on issue 63 by benoit.m...@gmail.com: HttpClient doesn't honor https connections http://code.google.com/p/gambas/issues/detail?id=63 Apparently this is by design. I register that as an

[Gambas-user] Better IIf?

2011-05-04 Thread Jussi Lahtinen
Hi! I noticed this while debugging (from http://gambasdoc.org/help/lang/iif?v3); "BE CAREFUL! Contrary to IF, or the C/Perl ? operator, both TrueExpression and FalseExpression are evaluated, whatever the value of Test is. " This is pretty deceptive! Can this be re-implement as syntactic sugar (com