[Gambas-user] String[] initialisation

2009-03-01 Thread Ian Haywood
I would like to initialise a String array to an array of zero elements.

Setting to [] seems to be the same as NULL, which fires an error if .Length or 
.Push are called.
Setting to [foo] (i.e. to an array of one dummy element), and then calling 
.Clear ()
does what I want, but this doesn't look right.

Ian Haywood

--
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] Missing gambas2-gb-settings in OpenSuse

2009-03-01 Thread Benoît Minisini
 Hello

 I'm trying to test my application (which uses gb.settings) into a
 virtualized OpenSuse.

 All dependencies are found, except gambas2-gb-settings. I've browsed
 repositories manually and also had no luck.

 Even if I install the whole Gambas IDE into OpenSuSe, debugging the
 application or making an executable runs fine, but creating a RPM
 package and trying to install it, gives the same error.

 Am I missing something, or is there a reason for so?

 Thanks

 Jesus


No reason. You should contact the person who made the package, and tell him 
that one package is missing.

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] Missing gambas2-gb-settings in OpenSuse

2009-03-01 Thread Jesus Guardon
Thanks, Benoît

I think he's Guillermo Ballester Valor, so I will contact him.

Regards

Jesús Guardón

Benoît Minisini escribió:
 Hello

 I'm trying to test my application (which uses gb.settings) into a
 virtualized OpenSuse.

 All dependencies are found, except gambas2-gb-settings. I've browsed
 repositories manually and also had no luck.

 Even if I install the whole Gambas IDE into OpenSuSe, debugging the
 application or making an executable runs fine, but creating a RPM
 package and trying to install it, gives the same error.

 Am I missing something, or is there a reason for so?

 Thanks

 Jesus

 
 No reason. You should contact the person who made the package, and tell him 
 that one package is missing.
 
 Regards,
 


--
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] String[] initialisation

2009-03-01 Thread Doriano Blengino
Ian Haywood ha scritto:
 I would like to initialise a String array to an array of zero elements.

 Setting to [] seems to be the same as NULL, which fires an error if .Length 
 or .Push are called.
 Setting to [foo] (i.e. to an array of one dummy element), and then calling 
 .Clear ()
 does what I want, but this doesn't look right.
   
I my be wrong, but I think that: after having created an array, it is 
void (ie, it has no elements), so you have what you want. If, after 
having used it, you want to have it empty again, call Clear(); this 
empties it again. You are true in that [] should designate an empty 
array, not NULL. Anyway, the previous statements should work.

Hope it helps -- 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


Re: [Gambas-user] Probable bug in Postgres db driver

2009-03-01 Thread Benoît Minisini
  I've posted about this before in regards to the PictureDatabase example,
  as in postgres though you can save the picture, it dosn't retreive. I had
  asked someone to test it, though no-one appears to have had the time.
 
  This driver is pretty critical to my medical records project, as I used
  to be able to save images of skin lesions/Xrays, diagrams, line drawings,
  back to my database and now can save but the retreived image is chopped
  losing a number of bytes from the end and won't display.
 
   I want to be able to present my program at a medical computing
  conference in July as a prototype version reasonably fully complete by
  then, so I need it to work. All this work of mine by the way will be
  open-sourced  if I can get it to a state of functional completeness.
 
  So I asked my mate Ian Haywood, who is quite an accomplished programmer
  and far far brighter and more computer literate than I  by sending him
  this message
 
   If you updated the latest  gambas - you don't need my program to test
   this - just change a couple of lines of code in the picturedatabase
   sample program to use postgres and you will see the error. Maybe, it is
   only on my machine.
 
  and this was his reply:
 
  =
  I can reproduce this. It is only postgres, only gambas, and only with the
  BYTEA type, TEXT doesn't do this (but you can't put a png in text, at
  least not easily).
 
  So, it's definitely a bug in the postgres drivers for gambas.
  Has this been reported to the gambas list?
 
  There is a workaround: convert the png to text and store, then convert
  back on reading. this works b/c our images are small, but big images will
  waste space and cause slowness. this solution is fairly easy to whip up,
  I can do this if the underlying bug can't be fixed and we want this
  functionality for 10240cc[conference].
 
  Ian
  =
 
  So I wondered if somone could test the postgres driver again, just to
  make sure it is not a library on my machine, although I know Ian runs a
  debian flavour so probably not.
 
  Regards
 
  Richard

 I promise, I will look at that bug as soon as I finish my removal!

 Regards,

It should be fixed in revision #1888, thanks to Ian Haywood. But I am not 100% 
sure, so please check!

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


[Gambas-user] PRINT #process Example

2009-03-01 Thread Dimitris Anogiatis
hey guys

I've read the documentation on Process_Read() but I can't find a way to
detect
when the process has stopped and it's waiting for an input; to my
understanding
I can provide that input with PRINT #Process, input but so far I haven't
found
a full example of how that is done.

can someone augment the process_read example to show me where and how
the PRINT #process, input fits in the picture?

I'm using Gambas 2.10 on Debian Lenny

Thanks in advance
Dimitris
--
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] question about gambas2-runtime

2009-03-01 Thread Vackoy

When I make an installation package (in Ubuntu), it doesn't generate the
necessary dependences for the modules that I need for my program to run. I
want to install my program in another computer by I don't want to
install/compile gambas as a whole.

Can this be done?

Thanks

Marcel



Dimitris Anogiatis wrote:
 
 to see what gambas packages you need to install a gambas binary
  you can press ctrl + p in the IDE and select the components tab
 
 the ones that are clicked are the ones your program requires to be present
 when you install the final deb package
 
 Hope it helps
 Dimitris
 
 On Sat, Feb 28, 2009 at 2:19 PM, Fabien Bodard gambas...@gmail.com
 wrote:
 
 yes

 2009/2/25 Joshua Higgins joshigg...@googlemail.com:
  I'm assuming that installing gambas2-runtime in Ubuntu, I'd still need
 to
  install gambas2-gb-net package to work if my program uses a UDP server,
 for
  example?
 
  --
  joshua higgins
 --
 
 --
  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

 --
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/question-about-gambas2-runtime-tp22211061p22279540.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