Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Zelimir Ikovic : > I am following discussion on Gambas more than 3 months. > > Last 10 years I worked in VB6 (70%) and C(30%) on Windows. > > I am about to switch to Linux, and I have to decide: > Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK > I am just wondering is there an

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/20 Michael : > Zelimir, > I have spent years in VB6 and VB.Net and C#.Net. I have just recently > switched to Gambas2 and it is very rewarding. It doesn't have the full > range of facilities of VB.Net but in many instances it is easier to work > with and any shortcomings can be overcome. It

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Ian Haywood
On Sat, Nov 20, 2010 at 4:24 PM, Werner wrote: > On 20/11/10 04:40, Zelimir Ikovic wrote: >> I am following discussion on Gambas more than 3 months. >> >> Last 10 years I worked in VB6 (70%) and C(30%) on Windows. >> >> I am about to switch to Linux, and I have to decide: >> Gambas3, FreePascal (f

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Werner
On 20/11/10 04:40, Zelimir Ikovic wrote: > I am following discussion on Gambas more than 3 months. > > Last 10 years I worked in VB6 (70%) and C(30%) on Windows. > > I am about to switch to Linux, and I have to decide: > Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK > I am just wonderin

Re: [Gambas-user] BUG: postgresql dropped columns

2010-11-19 Thread Benoît Minisini
> If a column from a postgresql table is dropped, postgresql does not > actually remove the column, from the help files: > > "The DROP COLUMN form does not physically remove the column, but simply > makes it invisible to SQL operations. Subsequent insert and update > operations in the table will

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Michael
Zelimir, I have spent years in VB6 and VB.Net and C#.Net. I have just recently switched to Gambas2 and it is very rewarding. It doesn't have the full range of facilities of VB.Net but in many instances it is easier to work with and any shortcomings can be overcome. It's fun! Haven't tried Gambas

Re: [Gambas-user] SUb Routines with a return value

2010-11-19 Thread Michael
Fabien, I didn't include the whole code. The MnuPopup.Popup is in a Click_Event of a grid because I want a popup menu not a permanent menu item. It works fine now. I look forward to Gambas 3 release. Regards Mike On 20/11/10 07:04, Fabien Bodard wrote: > 2010/11/19 Matti: >> I don't understand e

Re: [Gambas-user] SUb Routines with a return value

2010-11-19 Thread Michael
Thanks Fabien Mike On 20/11/10 00:07, Fabien Bodard wrote: > action_activate is an event handler not a funtion... that's why it's a sub > > in gambas SUB/FUNCTION are all synonyme of PROCEDURE > > chose between each is just made by convention ... but for events it's a sub ! > > > > > 2010/11/19 Mi

[Gambas-user] Installing Gambas3 on PCLINUXOS -2010

2010-11-19 Thread Maurice Dumais
HI All, I am running PCLINUXOS 2010, KDE 4.5.3 QT Toolkit, and Libtools 2.6.10. I tried to install Gambas3 rev. 3302 and Make stops here: Making all in webkit make[5]: entrant dans le répertoire « /home/maurice/trunk/gb.qt4/src/webkit » /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAV

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
i think the difference about arrays of gambas2 and gambas3 is that the second has more datatypes. The basic syntax is the same for the subject of declaration for static and dynamic arrays. On Fri, 2010-11-19 at 21:06 +0100, Fabien Bodard wrote: > as i was saying it is not easy to me to talk abou

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Zelimir Ikovic
I am following discussion on Gambas more than 3 months. Last 10 years I worked in VB6 (70%) and C(30%) on Windows. I am about to switch to Linux, and I have to decide: Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where.

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
as i was saying it is not easy to me to talk about gambas2 ... there is at least 2 year that i dont use it ... i'm working all the time on gambas3. sorry, -- Beautiful is writing same markup. Internet Explorer 9 supports

Re: [Gambas-user] SUb Routines with a return value

2010-11-19 Thread Fabien Bodard
2010/11/19 Matti : > I don't understand exactly what you want to do, and why you have > "mnuPopup.Popup()" inside the event handler sub Action_Activate. And why > "mnuPopup.Popup()" anyway? i've don't say anything about that but generally a public sub myMenu_Click() end is enouth action is a s

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
hm i have not write so far object programming but i know the basics how to do that. But i have no experience about that you say. My book is for Gambas2 and i all i said about static and dynamic arrays is from this side. On Fri, 2010-11-19 at 16:52 +0100, Fabien Bodard wrote: > 2010/11/19 Simonar

Re: [Gambas-user] SUb Routines with a return value

2010-11-19 Thread Matti
I don't understand exactly what you want to do, and why you have "mnuPopup.Popup()" inside the event handler sub Action_Activate. And why "mnuPopup.Popup()" anyway? Popup menus are easily made like PUBLIC SUB Form_MouseDown() 'or something else MouseDown() IF Mouse.Right THEN mnuTest.Popup

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Simonart Dominique : > Le 19/11/2010 14:58, Fabien Bodard a écrit : >> 2010/11/19 Demosthenes Koptsis: >>> ok! >>> >>> i was cofused from two things >>> > Hi all, > > I tend to get a little confused too! > > Are these assumptions correct? > > If array notation is on Variable name, array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > as i think it now > > the word STATIC is not for declaration static arrays but > > If the STATIC keyword is specified, the same variable will be shared > with every object of this class. > > i get this from variable syntax, same for arrays which they are a set of

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
Ok Dimitri i will !!! On Fri, 2010-11-19 at 07:49 -0700, Dimitris Anogiatis wrote: > Demosthenes, > > I might be able to help out with the Greek Translation of the wiki as well. > When you're done with your book, send me an email perhaps we can work > on that together. > > Regards, > Dimitris >

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Dimitris Anogiatis
Demosthenes, I might be able to help out with the Greek Translation of the wiki as well. When you're done with your book, send me an email perhaps we can work on that together. Regards, Dimitris On Fri, Nov 19, 2010 at 7:40 AM, Demosthenes Koptsis wrote: > On Fri, 2010-11-19 at 15:17 +0100, Si

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
On Fri, 2010-11-19 at 15:17 +0100, Simonart Dominique wrote: > Le 19/11/2010 14:58, Fabien Bodard a écrit : > > 2010/11/19 Demosthenes Koptsis: > >> ok! > >> > >> i was cofused from two things > >> > Hi all, > > I tend to get a little confused too! > > Are these assumptions correct? > > If array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
as i think it now the word STATIC is not for declaration static arrays but If the STATIC keyword is specified, the same variable will be shared with every object of this class. i get this from variable syntax, same for arrays which they are a set of variables. A static array is declared as PRI

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
> Normal it's Dynamic array :) > > Dynamic : > DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] So what the difference between DIM aInt2 AS Integer[3], DIM aInt2 AS Integer[] if both are dynamic? Now my examples tell me if i am right... Dynamic arrays

Re: [Gambas-user] Installing gambas3 on LinuxMint

2010-11-19 Thread Dr. Martin Senftleben
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, thanks for your efforts! Am 19.11.2010 12:31, schrieb Ian Haywood: > On Fri, Nov 12, 2010 at 8:22 PM, Ian Haywood wrote: > For Linux Mint, I'd try with the Ubuntu Maverick release, so add the > following to /etc/apt/sources.list > > deb http://

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Simonart Dominique
Le 19/11/2010 14:58, Fabien Bodard a écrit : > 2010/11/19 Demosthenes Koptsis: >> ok! >> >> i was cofused from two things >> Hi all, I tend to get a little confused too! Are these assumptions correct? If array notation is on Variable name, array is STATIC If array notation is on Data type, array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > ok! > > i was cofused from two things > > 1) > in previous message about static arrays Fabien said that: > >>yes a static array is not an object ... that's why it's a little bit >>deprecated :) >> >> >>anther way : >> >>dim htmpArray as integer[]=  [1, 2, 3, 4, 5,

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
ok! i was cofused from two things 1) in previous message about static arrays Fabien said that: >yes a static array is not an object ... that's why it's a little bit >deprecated :) > > >anther way : > >dim htmpArray as integer[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > so a DIM htmpArray as integer

Re: [Gambas-user] SUb Routines with a return value

2010-11-19 Thread Fabien Bodard
action_activate is an event handler not a funtion... that's why it's a sub in gambas SUB/FUNCTION are all synonyme of PROCEDURE chose between each is just made by convention ... but for events it's a sub ! 2010/11/19 Michael : > I have been using popup menus for the first time and got the fol

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > On Fri, 2010-11-19 at 01:38 +0100, Benoît Minisini wrote: >> > Can someone explain embedded arrays further? >> > >> > i understand nothing. >> > >> > i know what a normal array is and that it can be static or dynamic. >> > >> > But "embedded arrays are just a way

[Gambas-user] SUb Routines with a return value

2010-11-19 Thread Michael
I have been using popup menus for the first time and got the following from the Gambas help. "PUBLIC SUB Action_Activate(key AS String) AS Boolean" I assumed this was an error as only functions have a return value so I changed it "Public Function...". Then on my line "mnuPopup.Popup()" it got an

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
On Fri, 2010-11-19 at 01:38 +0100, Benoît Minisini wrote: > > Can someone explain embedded arrays further? > > > > i understand nothing. > > > > i know what a normal array is and that it can be static or dynamic. > > > > But "embedded arrays are just a way to access a part of a Gambas object" >

Re: [Gambas-user] Installing gambas3 on LinuxMint

2010-11-19 Thread Ian Haywood
On Fri, Nov 12, 2010 at 8:22 PM, Ian Haywood wrote: > On Thu, Nov 11, 2010 at 5:42 PM, Dr. Martin Senftleben > wrote: > >> I want to install gambas3 on my LinuxMint machine (64bit), but it >> doesn't work, the gambas3-gb-db-mysql package cannot be installed, >> because it requires libmysqlclient1

[Gambas-user] BUG: postgresql dropped columns

2010-11-19 Thread Bruce Bruen
If a column from a postgresql table is dropped, postgresql does not actually remove the column, from the help files: "The DROP COLUMN form does not physically remove the column, but simply makes it invisible to SQL operations. Subsequent insert and update operations in the table will store a n

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Fabien Bodard : > http://gambasdoc.org/help/cat/objectmodel > > http://gambasdoc.org/help/cat/arraydecl > > Ok so, > > > an embedd array is a private array... oups i forgot to read this line in the help : "In Gambas 3, embedded arrays cannot be used as local variables anymore. But they

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
http://gambasdoc.org/help/cat/objectmodel http://gambasdoc.org/help/cat/arraydecl Ok so, an embedd array is a private array... you cannot give it as argument throw a procedure ex : Public mysub(myVar as MyArray[]) Like we can do with a dynamic array that have global reference such as any obj