Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-17 Thread Benoît Minisini
 Good morning Benoit (and everyone)

 Just came about a question: When I want to bring my Gambas2 app to
 Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2?
 (Creating new forms and converting the code...) Or is it more upward
 compatible?

 The reason for asking this is that you told me that you would just
 maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm
 still maintaining some bigger Gambas1 projects, I would then migrate
 them to Gambas3 directly rather than having them under Gambas2 - if it's
 as much work again...

 Hope I could make clear what I mean...

 Regards

 Rolf


The weirdest thing between Gambas 2 and Gambas 3 at the moment is 
Desktop.Scale, that is smaller in Gambas 3. 

Gambas 3 does a little conversion for controls whose W and H = 3 * 
Desktop.Scale (it adds one Desktop.Scale), but you have to update all your 
forms and check them one by one to redesign them.

There are many other changes in instruction syntax and class interfaces, but I 
never note them at the moment. Hopefully, they are less changes between Gambas 
3 and Gambas 2 than between Gambas 2 and Gambas 1.

So please try and tell us the result! :-)

-- 
Benoît

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Filename as string

2009-02-17 Thread FoxIII

I am very new to Gambas (and programming in general). I am trying to retrieve
a filename as string from fileview so I can display it on the screen, but do
not seem to be able to manage it. I know this may sound a bit of a simple
request, but for a total beginner, the help files are not entirely, well,
helpful. hehe
-- 
View this message in context: 
http://www.nabble.com/Filename-as-string-tp22057355p22057355.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Locking files - best method

2009-02-17 Thread nando
I think you're looking for the filesystem to prevent you from file operations
while 'locked'.  I used 'locking' with VB5 and relied on Window's internal 
locking
mechanism. After years of agony, I found the external subdirectory method
the best.  I don't have shared files on just one computer, there are many 
computers.
I found that VB5 sometimes got stupid and never unlocked - especially when
long time between reboots.  But now, with the subdir method, I can fully 
control it.
I do this with Gambas using Samba while I port away from VB5.

The main problem is this:
Program 1 locks a file (or a portion of a file) and that program freezes up, 
locks up, computer is shutdown, etc WHILE the lock is in force.
Then other programs try the same and
The whole system is screwed!
Now that I use subdirs, I know that a lock 'should be' free (ie unlocked)
within 10 seconds because I know that there is no way my code should last
that longand something is wrong.  In such a case, I can actually
proceed (fake re-locking it) with the second program, give a warning message
that it couldn't lock because it is taking too long but is proceeding
and will subsequently unlock (rmdir) too.
In very few cases, I have had to go in and RMDIR manually because things
got jammed up, but discovered those situations to be wierd-condition bugs
which are now fixed.
Personally, I like the full control it provides and works over multiple
programs and multiple computers.


-- Original Message ---
From: Rolf-Werner Eilert eilert-sprac...@t-online.de
To: mailing list for gambas users gambas-user@lists.sourceforge.net
Sent: Mon, 16 Feb 2009 08:33:12 +0100
Subject: Re: [Gambas-user] Locking files - best method

 Benoît Minisini schrieb:
  Sharing a file exclusively locked very briefly and getting everything
  to work correctly amongst multiple programs can be brain-twisting.
  With increasing use of mulit-cores, the possibility for sharing files
  using any lock technique is more important than ever before
  because all associated programs can execute simultaneously.
 
  
  You can use the LOCK/UNLOCK commands and a specific void file on the disk 
  to 
  create system exclusive sections in your code.
  
  Let's suppose you want to modify a file named /tmp/foo.
  
  ...
  DIM hLock AS Stream
  DIM hFile AS Stream
  
  ' Try to acquire the lock
  TRY hLock = LOCK /tmp/foo.lock
  IF ERROR THEN
PRINT 'foo' is being modified. Try again later.
RETURN
  ENDIF
  
  ' Lock was acquired, you can modify the file now!
  hFile = OPEN /tmp/foo FOR OUTPUT
  ...
  CLOSE #hFile
  
  ' Do not forget to release the lock
  UNLOCK hLock
  ...
 
 
 IMHO the one drawback remains: foo.lock isn't foo. You cannot lock the 
 file itself, relying on the operating system / the file system to really 
 make sure nobody else is able to corrupt your file during your access.
 
 If there's some other app that doesn't care about .lock files, your 
 /tmp/foo will be lost. Of course, the same applies to my own methods 
 like lock directories or self-made lock files.
 
 The only way to solve this would be a mechanism in the file system 
 itself, giving the opportunity to code something like
 
 hFile = OPEN /tmp/foo FOR OUTPUT LOCK
 
 which would unlock the file automagically when you CLOSE it (or the 
 instance of your application ends).
 
 Regards
 
 Rolf
 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
--- End of Original Message ---


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to populate a gridview from keyboard

2009-02-17 Thread Dominique SIMONART
Hi everyone,

it seemed so simple that I feel a bit stupid with that question, but...
I want to fill a gridview with text coming from the keyboard, as in a
crossword.
I think I've to deal with the keypress event and the key.text data, but
how can I identify the cell to fill. I cannot even see any cursor on my
grid.
I want not to use the mouse cursor because my fingers are on the
keyboard all the time. I wish to define the next cell with the cursor
keys only.

Could someone give me a short sample or point me on the right direction?

Thanks in advance for your help
Dominique Simonart


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Filename as string

2009-02-17 Thread Jussi Lahtinen
I'm not completely sure what you want... but if you use fileview mode
none or single.
You can retrieve filename of selected file like this:

StringVariable = FileView1.Selection[0]

Hope that helps...


Jussi



On Tue, Feb 17, 2009 at 3:30 PM, FoxIII dan...@thumoo.com wrote:

 I am very new to Gambas (and programming in general). I am trying to retrieve
 a filename as string from fileview so I can display it on the screen, but do
 not seem to be able to manage it. I know this may sound a bit of a simple
 request, but for a total beginner, the help files are not entirely, well,
 helpful. hehe
 --
 View this message in context: 
 http://www.nabble.com/Filename-as-string-tp22057355p22057355.html
 Sent from the gambas-user mailing list archive at Nabble.com.


 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Locking files - best method

2009-02-17 Thread Rolf-Werner Eilert
That's right. I tried your idea, and it works fine as long as every 
other program keeps looking for the dirs.

My problem is similar: Part of the software runs on Windows, originally 
programmed with VB5. To make it compatible to the Linux side client, I 
introduced a lock-file scheme. It still uses that successfully. 
Unfortunately, I lost the VB source over the years :-( so it has to keep 
on running like that, and so has the Linux client. Luckily, though, we 
are only 2 persons in our offices who use this thing on a daily basis, 
so it's no harm. There are some other Linux programs meanwhile using the 
data, but do not write to it, so no real danger.

But for my next-generation tool for the teachers there was trouble with 
my lock-file system, so I changed writing/reading to your lock-directory 
system. Easy thing, and up to now (a week or so...) it seems to be 
running well. I cannot use Benoits LOCK Stream here because this program 
is still Gambas1.

I had your idea of waiting, but writing nevertheless and just give a 
warning as you do is even better. Maybe I'll change that part, but I'd 
prefer keeping the original and writing into temporary files until Admin 
cares about it... :-) As this application has a messaging system, I 
could even send me a message in this case!

Regards

Rolf


nando schrieb:
 I think you're looking for the filesystem to prevent you from file operations
 while 'locked'.  I used 'locking' with VB5 and relied on Window's internal 
 locking
 mechanism. After years of agony, I found the external subdirectory method
 the best.  I don't have shared files on just one computer, there are many 
 computers.
 I found that VB5 sometimes got stupid and never unlocked - especially when
 long time between reboots.  But now, with the subdir method, I can fully 
 control it.
 I do this with Gambas using Samba while I port away from VB5.
 
 The main problem is this:
 Program 1 locks a file (or a portion of a file) and that program freezes up, 
 locks up, computer is shutdown, etc WHILE the lock is in force.
 Then other programs try the same and
 The whole system is screwed!
 Now that I use subdirs, I know that a lock 'should be' free (ie unlocked)
 within 10 seconds because I know that there is no way my code should last
 that longand something is wrong.  In such a case, I can actually
 proceed (fake re-locking it) with the second program, give a warning message
 that it couldn't lock because it is taking too long but is proceeding
 and will subsequently unlock (rmdir) too.
 In very few cases, I have had to go in and RMDIR manually because things
 got jammed up, but discovered those situations to be wierd-condition bugs
 which are now fixed.
 Personally, I like the full control it provides and works over multiple
 programs and multiple computers.
 
 
 -- Original Message ---
 From: Rolf-Werner Eilert eilert-sprac...@t-online.de
 To: mailing list for gambas users gambas-user@lists.sourceforge.net
 Sent: Mon, 16 Feb 2009 08:33:12 +0100
 Subject: Re: [Gambas-user] Locking files - best method
 
 Benoît Minisini schrieb:
 Sharing a file exclusively locked very briefly and getting everything
 to work correctly amongst multiple programs can be brain-twisting.
 With increasing use of mulit-cores, the possibility for sharing files
 using any lock technique is more important than ever before
 because all associated programs can execute simultaneously.

 You can use the LOCK/UNLOCK commands and a specific void file on the disk 
 to 
 create system exclusive sections in your code.

 Let's suppose you want to modify a file named /tmp/foo.

 ...
 DIM hLock AS Stream
 DIM hFile AS Stream

 ' Try to acquire the lock
 TRY hLock = LOCK /tmp/foo.lock
 IF ERROR THEN
   PRINT 'foo' is being modified. Try again later.
   RETURN
 ENDIF

 ' Lock was acquired, you can modify the file now!
 hFile = OPEN /tmp/foo FOR OUTPUT
 ...
 CLOSE #hFile

 ' Do not forget to release the lock
 UNLOCK hLock
 ...

 IMHO the one drawback remains: foo.lock isn't foo. You cannot lock the 
 file itself, relying on the operating system / the file system to really 
 make sure nobody else is able to corrupt your file during your access.

 If there's some other app that doesn't care about .lock files, your 
 /tmp/foo will be lost. Of course, the same applies to my own methods 
 like lock directories or self-made lock files.

 The only way to solve this would be a mechanism in the file system 
 itself, giving the opportunity to code something like

 hFile = OPEN /tmp/foo FOR OUTPUT LOCK

 which would unlock the file automagically when you CLOSE it (or the 
 instance of your application ends).

 Regards

 Rolf

 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source 

Re: [Gambas-user] How to populate a gridview from keyboard

2009-02-17 Thread charlesg

Hi,

Tableview is a modifiable gridview but I did not find it very flexible.

Jacky-12 gave a brilliant solution in reply to my post 'OOP and TextBox'
Nov-21-2008

rgds
-- 
View this message in context: 
http://www.nabble.com/How-to-populate-a-gridview-from-keyboard-tp22058169p22058870.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to populate a gridview from keyboard

2009-02-17 Thread Benoît Minisini
 Hi everyone,

 it seemed so simple that I feel a bit stupid with that question, but...
 I want to fill a gridview with text coming from the keyboard, as in a
 crossword.
 I think I've to deal with the keypress event and the key.text data, but
 how can I identify the cell to fill. I cannot even see any cursor on my
 grid.
 I want not to use the mouse cursor because my fingers are on the
 keyboard all the time. I wish to define the next cell with the cursor
 keys only.

 Could someone give me a short sample or point me on the right direction?

 Thanks in advance for your help
 Dominique Simonart


Just implement the cursor your self. Create a class named MyGridView that 
inherits GridView. 

In it, create an observer on yourself to catch the KeyPress event, and add two 
class variables (let's name them $X and $Y) to store the cursor coordinates. 

Catch the Data event too to define the background / foreground of the cell: 
Color.SelectededBackground and Color.SelectedForeground for the current cell 
(Row = $Y and Column = $X), nothing otherwise (the standard colors).

Then each time you move the cursor, update the $X and $Y variables, and 
refresh the old current cell and the new one.

If you don't want to use the Data event, you must use the MyGridView[X, Y] 
cell accessor.

Regards,

-- 
Benoît

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to populate a gridview from keyboard

2009-02-17 Thread Dominique SIMONART
Benoît Minisini a écrit :
 Hi everyone,

 it seemed so simple that I feel a bit stupid with that question, but...
 I want to fill a gridview with text coming from the keyboard, as in a
 crossword.
 I think I've to deal with the keypress event and the key.text data, but
 how can I identify the cell to fill. I cannot even see any cursor on my
 grid.
 I want not to use the mouse cursor because my fingers are on the
 keyboard all the time. I wish to define the next cell with the cursor
 keys only.

 Could someone give me a short sample or point me on the right direction?

 Thanks in advance for your help
 Dominique Simonart

 

 Just implement the cursor your self. Create a class named MyGridView that 
 inherits GridView. 

 In it, create an observer on yourself to catch the KeyPress event, and add 
 two 
 class variables (let's name them $X and $Y) to store the cursor coordinates. 

 Catch the Data event too to define the background / foreground of the cell: 
 Color.SelectededBackground and Color.SelectedForeground for the current cell 
 (Row = $Y and Column = $X), nothing otherwise (the standard colors).

 Then each time you move the cursor, update the $X and $Y variables, and 
 refresh the old current cell and the new one.

 If you don't want to use the Data event, you must use the MyGridView[X, Y] 
 cell accessor.

 Regards,

   
Thanks to all,

Well Benoit, I think it's time for me to get inside all those
inheritage, observer, etc. Learning is really the master keyword in
programming! :)
May be it's what keep us interested in!

regards,
Dominique Simonart
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to create a web site with Gambas

2009-02-17 Thread Daniel Rojas
   Hi all.

   I'm a begginer with Gambas and I want to create a web site whit it, but I
don't know how to start. Can somebody help me?

   Thanks.

Daniel Quintero desde la Ciudad de México
--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Multiple TCP server sockets

2009-02-17 Thread Jose J. Rodriguez
Is there any way to get different TCP server objects with different
ports to use a different socket object for read?  I am trying to port
my VB6 multiport communications server application to Gambas2 and (I
think) I need something like that to get it to work.

Regards,
Joe1962

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help with some parsing

2009-02-17 Thread richard terry
On Tue, 17 Feb 2009 05:55:10 pm you wrote:
 So my quesitoni is 'how to discover what the character is ?chr$(10)(13)
 and how to eliminate those before parsing.

 CHR$(10)  CHR$(13) - carriage return  line feed
 Those are special command character from the stone age of the
 informatic used to go to the next line (add new line) - was needed in the
 times where a martix printer with ink ribbon the single output device of
 the computer was


 Try using REPLACE$, I never used it in GAMBAS, but the same operator in VB6
 was able to remove every char (also those with special functions)

 ResultString=REPLACE$(InputStringWithBadChars, CHR$(10), )
 ResultString=REPLACE$(ResultString, CHR$(13), )


 This will search (in 2 Stages) first for CHR$(10) and than for CHR$(13) and
 replace them with empty strings...


 hope this helps
That's the sort of solution I was looking for and I will try it and see if it 
works better than my crude solution:

In the meantime I found another solution. I re-exported from msAccess, but 
added a 'dummy field at the end I called 'end', so  a theoretically complete 
line of data would look like

surname|firstname|birthdate|socialhistory|end

I then read the lines concatenating them until I had a complete line:

  Line Input #hfile, sLineInput   
  sIncompleteLine = sLineInput 'keep copy
  Do Until Right(sIncompleteLine, 4) = |end
 Line Input #hfile, sLineInput'No, then get the next line
sIncompleteLine = sLineInput  'and concatenate for 
  Loop
  sLineInput = sIncompleteLine  'ok n now, keep going.

'Line is complete, so plit up into bits
  bits = Split(sLineInput, |)

thanks all, and benoit, I'll look at the gambas data thing but I've never been 
able to get it to work - it won't read my postgres database without crashing, 
I've posted that before.

Regards

richard






 kind regards


 Emil



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiple TCP server sockets

2009-02-17 Thread Benoît Minisini
 Is there any way to get different TCP server objects with different
 ports to use a different socket object for read?  I am trying to port
 my VB6 multiport communications server application to Gambas2 and (I
 think) I need something like that to get it to work.

 Regards,
 Joe1962


I would say yes. I see nothing that prevents from creating several 
SocketServer objects.

Regards,

-- 
Benoît

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-17 Thread richard terry
On Tue, 17 Feb 2009 09:42:09 pm Rolf-Werner Eilert wrote:
 Benoît Minisini schrieb:
  Good morning Benoit (and everyone)
 
  Just came about a question: When I want to bring my Gambas2 app to
  Gambas3, will this be as roundabout as it is from Gambas1 to Gambas2?
  (Creating new forms and converting the code...) Or is it more upward
  compatible?
 
  The reason for asking this is that you told me that you would just
  maintain bugfixes in Gambas2 and bring changes only to Gambas3. As I'm
  still maintaining some bigger Gambas1 projects, I would then migrate
  them to Gambas3 directly rather than having them under Gambas2 - if it's
  as much work again...
 
  Hope I could make clear what I mean...
 
  Regards
 
  Rolf
 
  The weirdest thing between Gambas 2 and Gambas 3 at the moment is
  Desktop.Scale, that is smaller in Gambas 3.
 
  Gambas 3 does a little conversion for controls whose W and H = 3 *
  Desktop.Scale (it adds one Desktop.Scale), but you have to update all
  your forms and check them one by one to redesign them.
 
  There are many other changes in instruction syntax and class interfaces,
  but I never note them at the moment. Hopefully, they are less changes
  between Gambas 3 and Gambas 2 than between Gambas 2 and Gambas 1.
 
  So please try and tell us the result! :-)

 LOL - ok, I will. I would. If I could.

 Downloaded the svn and tried to compile it, it stopps here:

 /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld:
 cannot find -lqt-mt
 collect2: ld returned 1 exit status
 make[5]: *** [gb.qt.kde.html.la] Fehler 1
 make[5]: Leaving directory
 `/home/tester/gambastest/trunk/gb.qt.kde/src/html'
 make[4]: *** [all-recursive] Fehler 1
 make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde/src'
 make[3]: *** [all-recursive] Fehler 1
 make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde'
 make[2]: *** [all] Fehler 2
 make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt.kde'
 make[1]: *** [all-recursive] Fehler 1
 make[1]: Leaving directory `/home/tester/gambastest/trunk'
 make: *** [all] Fehler 2

 Any idea what's wrong here?

I compile the svn daily, and I had the exact same problem which appeared 
suddenly a month ago and my previous scripts for compiling gambas3 stopped 
working, despite the fact that the appropriate libraries seemed to be on my 
machine, and in theory the pathways were as well.

Now the sad part.

After days and days of searching every forum on the internet I found a 
solution which I can't remember.

But the potential good news, its contained within my PKGBUILD file which I use 
to compile the package with, so I've enclosed it. I think. and not sure, 
that it was this line:

make LDFLAGS+=-L/opt/qt/lib

that I included in the script which made the difference.

Hope this helps.

Richard



 There is an older Gambas3 on my system which is running ok, should I try
 with that one? Don't know how old it is, but it has a Copyright until
 2009 in the help... :-)

 Rolf


 ---
--- Open Source Business Conference (OSBC), March 24-25, 2009, San
 Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing
 the Enterprise -Strategies to boost innovation and cut costs with open
 source participation -Receive a $600 discount off the registration fee with
 the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Filename as string

2009-02-17 Thread richard terry
On Wed, 18 Feb 2009 12:30:43 am FoxIII wrote:
 I am very new to Gambas (and programming in general). I am trying to
 retrieve a filename as string from fileview so I can display it on the
 screen, but do not seem to be able to manage it. I know this may sound a
 bit of a simple request, but for a total beginner, the help files are not
 entirely, well, helpful. hehe

If you post your code to show what you are attempting and what is failing we 
can better help you.

Regards

Richard


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another surefire crash of Gambas with no error messages

2009-02-17 Thread Benoît Minisini
 This one seems really simple. 1876

 Run any project
 Split the screen vertically and leave it split
 Then click the split the screen horizontally button
 Gambas will 'disappear', no sig 11, no nothing, just gone.

 regards

 richard

Fixed in revision #1877 (Gambas 3). And you got your toolbar buttons for 
special pasting. But maybe they are too wide...

Regards,

-- 
Benoît


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help with some parsing

2009-02-17 Thread Doriano Blengino
nando ha scritto:
 I got a chuckle from this one.
 A typewriter, those mechanical things that are only in black and white movies
 and museum actually performed CRLF using that bar to perform the line feed 
 and 
 carriage return.  And CR LF comes from that. 
 All the software I write for HTTP, ascii files, When reading, I only look for 
 the LF.
 If I find a CR, I just ignore it. I have yet to find a case it normally
 doesn't work with.
   
I agree partially with you - I don't like the CR-LF convention: I think 
that a single LF is enough.
But your programs, even if they ignore LF when reading, still use CR-LF 
when writing (I hope!), otherwise they did not respect the standard.

And about the standard... someone in the past said a single LF would be 
the line terminator. But someone else thought that CR was enough (Apple 
computers for example, and before, other mainframes like VAX). Then, 
still someone else thought that neither was good, and used CRLF. If the 
american DoD, from which our Internet comes, decided CR-LF was the way 
to go, they too had good reasons, I think, even if I don't know them. I 
admire so much who invented IP, TCP/IP, FTP, HTTP, that I take for good 
what they said: CR-LF is the right line terminator even if I don't like it.

Pardon me for getting this so hot, I find it difficult to think that 
CR-LF is bad only because is so old... :-), the only important thing is 
to cooperate in a common standard. Well: the IP/TCP/HTTP/HTML standard 
is out there, and it works. It has been developed in full democracy (you 
know what RFC stands for), and so many different kinds of computer can 
intercommunicate, thanks to this standard. Do you want to say this is a 
stupid thing?

And finally... I still use what you could call old museum printers, 
which need CR *and* LF. There are some around, even if you don't see 
them... the world is not only made from 4Gb ram computers and 30PPM 
laser printers...

Best regards, and don't get too angry with me...

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help with some parsing

2009-02-17 Thread Emil Tchekov
Hello Doriano,

I have to excuse me - it was never my intention to insult your, as it seems
deeper going feelings, regarding this particular 2 Bytes :-D

Ofcourse you are right - they are (and will be in the future also) still in
use...

But here is the point where I do not agree with you:

I do not know how old are you... My first date with CRLF was on my very
expensive (4000 USD) Apple ][ with the huge ammount of 48 KB RAM, 16 KB
ROM, 144 KB Floppy Disk and rare extension - Video Card allowing me to work
with 80x25 chars instead of the usual 40x25 ... Not to mention the
extraordinary calculation power based on the 1 MHz 6502 CPU ;-).

So please excuse when I am calling this stone age, but my very simple
mobile phone laying in my pocket offers 2 GB of storing capacity on volume
that the old Apple used to store about 16KB and about 300 MHz RISC based
power...

It was not a try to reduce the meaning and importance of those command
chars - but simply to show how long they are in use...

Very best regards

And one more time excuse my lack of respect


Emil Tchekov










-Ursprungliche Nachricht-
Von: Doriano Blengino [mailto:doriano.bleng...@fastwebnet.it]
Gesendet: Dienstag, 17. Februar 2009 23:15
An: mailing list for gambas users
Betreff: Re: [Gambas-user] Help with some parsing


Emil Tchekov ha scritto:
 CHR$(10)  CHR$(13) - carriage return  line feed
 Those are special command character from the stone age of the
informatic
 used to go to the next line (add new line) - was needed in the times where
a
 martix printer with ink ribbon the single output device of the computer
 was

Pardon me to point out. I disagree,
chr$(13) is CR; chr$(10) is LF.
While it is true they are an old standard, saying they are from the
stone age is not fair. HTTP protocol relies on CR-LF, and you must
admit that HTTP protocol is well alive - not a stone age standard. The
fact CR-LF is so old is a proof of its power.
Moreover, text files are the most expressive and versatile form of
digital data. Html, Xml, Svg, Postscript, PDF, are all in wide use and
are based on ASCII, and so they contain CR-LF sequences.

The fact Unix/Linux uses a single LF instead of a CR-LF is pretty
marginal - it was simply a design choice. A windows HTTP server can take
text files from disk and serve them verbatim, while a Unix HTTP server
has to translate them (to add the missing CR). Anyway, the concept is
the same. Most programs today can cope perfectly well with this two
standars.

In the end, the only thing I wanted to say is that CR and LF are far
more than what you depicted, and they are still needed.

Regards,

--
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 2 - Gambas 3

2009-02-17 Thread Rolf-Werner Eilert
Doriano Blengino schrieb:
 Benoît Minisini ha scritto:
 Benoit,

 I trying to compile and install Gambas 3 from the svn trunk and I have
 the same problem
 like Rolf.

 When I start the compilation by:  make=  I have the same
 error on :  cannot find -lqt-mt

 I tryed to compile Gambas 3 on Fedora 7 and Fedora 10, and the both
 case I have the same problem.

 I verify the library and all it's ok: on Fedora 10

 [r...@linusky ~]# ls -l /usr/lib/qt-3.3/lib/
 total 19380
 -rw-r--r-- 1 root root 7897526 oct.  8 15:19 libdesignercore.a
 -rw-r--r-- 1 root root1050 oct.  8 15:18 libdesignercore.prl
 -rw-r--r-- 1 root root  509178 oct.  8 15:19 libeditor.a
 -rw-r--r-- 1 root root 956 oct.  8 15:18 libeditor.prl
 -rw-r--r-- 1 root root   41204 oct.  8 15:19 libqassistantclient.a
 -rw-r--r-- 1 root root 967 oct.  8 15:18 libqassistantclient.prl
 lrwxrwxrwx 1 root root  15 déc.  5 02:24 libqsa.so - libqsa.so.
 1.1.4
 lrwxrwxrwx 1 root root  15 déc.  5 02:20 libqsa.so.1 - libqsa.so.
 1.1.4
 lrwxrwxrwx 1 root root  15 déc.  5 02:20 libqsa.so.1.1 -
 libqsa.so.1.1.4
 -rwxr-xr-x 1 root root 2106324 mars 25  2008 libqsa.so.1.1.4
 -rw-r--r-- 1 root root 964 oct.  8 15:18 libqt-mt.prl
 lrwxrwxrwx 1 root root  17 déc.  5 13:06 libqt-mt.so - libqt-
 mt.so.3.3.8
 lrwxrwxrwx 1 root root  17 déc.  5 12:38 libqt-mt.so.3 - libqt-
 mt.so.3.3.8
 lrwxrwxrwx 1 root root  17 déc.  5 12:38 libqt-mt.so.3.3 - libqt-
 mt.so.3.3.8
 -rwxr-xr-x 1 root root 8880140 oct.  8 15:19 libqt-mt.so.3.3.8
 -rw-r--r-- 1 root root 852 oct.  8 15:18 libqui.prl
 lrwxrwxrwx 1 root root  15 déc.  5 13:06 libqui.so - libqui.so.
 1.0.0
 lrwxrwxrwx 1 root root  15 déc.  5 12:38 libqui.so.1 - libqui.so.
 1.0.0
 lrwxrwxrwx 1 root root  15 déc.  5 12:38 libqui.so.1.0 -
 libqui.so.1.0.0
 -rwxr-xr-x 1 root root  255332 oct.  8 15:19 libqui.so.1.0.0



 Olivier Cruilles
 Mail: linu...@club-internet.fr

 
 If Redhat puts the Qt library in a strange place, maybe the configure script 
 cannot find it. And if nobody posts the output of configure, fixing that is 
 hard!

   
 May be a stupid thing, but... I think the .a library is needed. One 
 should install the development packages.
 On my Debian system they are always separated from the normal runtime 
 packages.
 I noticed that Redhat used to include some development file even when it 
 was not strictly necessary, but perhaps this has changed.
 
 In my system, a ls /usr/lib/qt3-mt* gives:
 lrwxrwxrwx 1 root root  18 2008-08-23 08:46 /usr/lib/libqtmcop.so.1 
 - libqtmcop.so.1.0.0
 -rw-r--r-- 1 root root   22984 2007-10-15 18:11 /usr/lib/libqtmcop.so.1.0.0
 lrwxrwxrwx 1 root root  17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3 
 - libqt-mt.so.3.3.7
 lrwxrwxrwx 1 root root  17 2008-08-23 08:46 /usr/lib/libqt-mt.so.3.3 
 - libqt-mt.so.3.3.7
 -rw-r--r-- 1 root root 8490684 2007-09-27 12:50 /usr/lib/libqt-mt.so.3.3.7
 
 I have the normal libqt3-mt package installed. But if I do ls 
 /usr/lib/libpng* I get:
 -rw-r--r-- 1 root root 177748 2008-04-29 11:24 /usr/lib/libpng12.a
 lrwxrwxrwx 1 root root 18 2008-08-23 08:47 /usr/lib/libpng12.so - 
 libpng12.so.0.27.0
 lrwxrwxrwx 1 root root 18 2008-08-23 08:46 /usr/lib/libpng12.so.0 - 
 libpng12.so.0.27.0
 -rw-r--r-- 1 root root 141432 2008-04-29 11:24 /usr/lib/libpng12.so.0.27.0
 lrwxrwxrwx 1 root root 10 2008-08-23 08:47 /usr/lib/libpng.a - 
 libpng12.a
 lrwxrwxrwx 1 root root 11 2008-08-23 08:47 /usr/lib/libpng.so - 
 libpng12.so
 
 and you see those .a files. This is because I have the development 
 package for libpng.
 
 
 

Yep, the first one isn't on my system:

server03:~ # ls /usr/lib/qt3-mt*
ls: cannot access /usr/lib/qt3-mt*: No such file or directory

server03:~ # ls /usr/lib/libpng*
/usr/lib/libpng.a   /usr/lib/libpng.so/usr/lib/libpng.so.3.18.0 
/usr/lib/libpng12.la  /usr/lib/libpng12.so.0
/usr/lib/libpng.la  /usr/lib/libpng.so.3  /usr/lib/libpng12.a 
/usr/lib/libpng12.so  /usr/lib/libpng12.so.0.18.0

I only wonder how I could compile Gambas3 a few weeks ago - it's there, 
it's running fine...


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user