Re: [Gambas-user] Startup problems

2009-05-28 Thread charlesg

I don't think you answered Diego's questions?

The last time I installed Gambas 2.8 from Applications, Add/Remove in Ubuntu
9.04, the installation was incomplete and I had to go into Synaptic (system,
administration, synaptic), do a search on Gambas and install the all related
packages.

rgds
-- 
View this message in context: 
http://www.nabble.com/Startup-problems-tp23750862p23755777.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Startup problems

2009-05-28 Thread KhurramM

are all of the following packages installed?

gambas2_2.0.0-1_i386.deb
gambas2-dev_2.7-1_i386.deb
gambas2-doc_2.0.0-1_i386.deb
gambas2-gb-chart_2.0.0-1_i386.deb
gambas2-gb-compress_2.0.0-1_i386.deb
gambas2-gb-compress-bzlib2_2.0.0-1_i386.deb
gambas2-gb-compress-zlib_2.0.0-1_i386.deb
gambas2-gb-crypt_2.0.0-1_i386.deb
gambas2-gb-db_2.0.0-1_i386.deb
gambas2-gb-db-firebird_2.0.0-1_i386.deb
gambas2-gb-db-form_2.0.0-1_i386.deb
gambas2-gb-db-mysql_2.0.0-1_i386.deb
gambas2-gb-db-odbc_2.0.0-1_i386.deb
gambas2-gb-db-postgresql_2.0.0-1_i386.deb
gambas2-gb-db-sqlite2_2.0.0-1_i386.deb
gambas2-gb-desktop_2.0.0-1_i386.deb
gambas2-gb-form_2.0.0-1_i386.deb
gambas2-gb-form-dialog_2.0.0-1_i386.deb
gambas2-gb-form-mdi_2.0.0-1_i386.deb
gambas2-gb-gtk_2.0.0-1_i386.deb
gambas2-gb-gtk-ext_2.0.0-1_i386.deb
gambas2-gb-gtk-svg_2.0.0-1_i386.deb
gambas2-gb-gui_2.0.0-1_i386.deb
gambas2-gb-image_2.0.0-1_i386.deb
gambas2-gb-info_2.0.0-1_i386.deb
gambas2-gb-net_2.0.0-1_i386.deb
gambas2-gb-net-curl_2.0.0-1_i386.deb
gambas2-gb-net-smtp_2.0.0-1_i386.deb
gambas2-gb-opengl_2.0.0-1_i386.deb
gambas2-gb-pcre_2.0.0-1_i386.deb
gambas2-gb-pdf_2.0.0-1_i386.deb
gambas2-gb-qt_2.0.0-1_i386.deb
gambas2-gb-qt-ext_2.0.0-1_i386.deb
gambas2-gb-qt-kde_2.0.0-1_i386.deb
gambas2-gb-qt-kde-html_2.0.0-1_i386.deb
gambas2-gb-qt-opengl_2.0.0-1_i386.deb
gambas2-gb-report_2.0.0-1_i386.deb
gambas2-gb-sdl_2.0.0-1_i386.deb
gambas2-gb-settings_2.0.0-1_i386.deb
gambas2-gb-v4l_2.0.0-1_i386.deb
gambas2-gb-vb_2.0.0-1_i386.deb
gambas2-gb-web_2.0.0-1_i386.deb
gambas2-gb-xml_2.0.0-1_i386.deb
gambas2-ide_2.0.0-1_i386.deb
gambas2-runtime_2.0.0-1_i386.deb

I am on hardy, u will need to confirm for your ubuntu the specific available
versions of all the above.

As a precaution use apt-get instead of synaptic. GUI tools sometimes create
installation issues, why ...  this I dont know.

Best of luck. :-)
-- 
View this message in context: 
http://www.nabble.com/Startup-problems-tp23750862p23758023.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag

2009-05-28 Thread Ron_1st
On Thursday 28 May 2009, Jesus Guardon wrote:
 Hi all
 
 It seems a basic question, but I'm unable to get it to work.
 I need to enable/disable a group of mixed controls in the Main Form, but 
 instead of doing individually, I'd prefer to do so by iterating.
 
 Following is the code I'm using and it gives an error Wanted string, 
 date or integer, got function instead
 
 What I'm doing wrong?
 
 PUBLIC SUB btnQuick_Click() 'toggle button
 
  DIM hCtl AS Control
 
  IF btnQuick.Value = TRUE THEN
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = FALSE
  'DEBUG hCtl.Tag
  NEXT
  ELSE
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = TRUE
  NEXT
  ENDIF
 
 END
 
 Regards
 
 Jesus
 

Not every control will have a .Tag property could be one of the problems.
Same can be for the .Enabled property
Also using Tag for other purpose could do something bad.
Best would be to print the object type and .ID property for the control under 
test
to see wich control has the problem.

Controls written in gambas could be suspected I think.
Basicly spoken the method used does not look strange to me
and I did long time ago something like this the same way.
I found also a problem and had the exclude a few object by type
checking. As far I remember I was also using the .Tag property.



Best regards,

Ron_1st

-- 
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text. 
 Q: Why is top-posting such a bad thing? 
---
 A: Top-posting. 
 Q: What is the most annoying thing in e-mail? 
 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag (Solved)

2009-05-28 Thread Jesus Guardon
Ron_1st escribió:
 On Thursday 28 May 2009, Jesus Guardon wrote:
 Hi all

 It seems a basic question, but I'm unable to get it to work.
 I need to enable/disable a group of mixed controls in the Main Form, but 
 instead of doing individually, I'd prefer to do so by iterating.

 Following is the code I'm using and it gives an error Wanted string, 
 date or integer, got function instead

 What I'm doing wrong?

 PUBLIC SUB btnQuick_Click() 'toggle button

  DIM hCtl AS Control

  IF btnQuick.Value = TRUE THEN
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = FALSE
  'DEBUG hCtl.Tag
  NEXT
  ELSE
  FOR EACH hCtl IN FMain.Controls
  IF hCtl.Tag = exclude THEN hCtl.Enabled = TRUE
  NEXT
  ENDIF

 END

 Regards

 Jesus

 
 Not every control will have a .Tag property could be one of the problems.
 Same can be for the .Enabled property
 Also using Tag for other purpose could do something bad.
 Best would be to print the object type and .ID property for the control under 
 test
 to see wich control has the problem.
 
 Controls written in gambas could be suspected I think.
 Basicly spoken the method used does not look strange to me
 and I did long time ago something like this the same way.
 I found also a problem and had the exclude a few object by type
 checking. As far I remember I was also using the .Tag property.
 
 
 
 Best regards,
 
 Ron_1st
 
Thanks, Ron_1st

As you stated, checking the type of the controls is needed. Now, it 
works as expected.

PUBLIC SUB btnQuick_Click() 'toggle button

 DIM hCtl AS Control

 IF btnQuick.Value = TRUE THEN
 FOR EACH hCtl IN FMain.Controls
 IF hCtl IS TextBox OR hCtl IS ComboBox OR hCtl IS CheckBox 
OR hCtl IS ValueBox OR hCtl IS Button THEN
 IF hCtl.Tag = exclude THEN hCtl.Enabled = FALSE 

 'PRINT hCtl.Name, hCtl.Tag
 ENDIF
 NEXT
 ELSE
 FOR EACH hCtl IN FMain.Controls
 IF hCtl IS TextBox OR hCtl IS ComboBox OR hCtl IS CheckBox 
OR hCtl IS ValueBox OR hCtl IS Button THEN
 IF hCtl.Tag = exclude THEN hCtl.Enabled = TRUE 

 ENDIF
 NEXT
 ENDIF

END


Best regards
Jesus

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag

2009-05-28 Thread Jorge Carrión
¿Perhaps trying sonething like this?

PUBLIC SUB btnQuick_Click() 'toggle button

  DIM hCtl AS Control

  IF btnQuick.Value = TRUE THEN
  FOR EACH hCtl IN FMain.Controls
  TRY hCtl.Enabled = (hCtl.Tag  exclude)
  NEXT

it Is not very elegant but it works, I guess.
Regards
Jorge

2009/5/28 Ron_1st ron...@tiscali.nl

 On Thursday 28 May 2009, Jesus Guardon wrote:
  Hi all
 
  It seems a basic question, but I'm unable to get it to work.
  I need to enable/disable a group of mixed controls in the Main Form, but
  instead of doing individually, I'd prefer to do so by iterating.
 
  Following is the code I'm using and it gives an error Wanted string,
  date or integer, got function instead
 
  What I'm doing wrong?
 
  PUBLIC SUB btnQuick_Click() 'toggle button
 
   DIM hCtl AS Control
 
   IF btnQuick.Value = TRUE THEN
   FOR EACH hCtl IN FMain.Controls
   IF hCtl.Tag = exclude THEN hCtl.Enabled = FALSE
   'DEBUG hCtl.Tag
   NEXT
   ELSE
   FOR EACH hCtl IN FMain.Controls
   IF hCtl.Tag = exclude THEN hCtl.Enabled = TRUE
   NEXT
   ENDIF
 
  END
 
  Regards
 
  Jesus
 

 Not every control will have a .Tag property could be one of the problems.
 Same can be for the .Enabled property
 Also using Tag for other purpose could do something bad.
 Best would be to print the object type and .ID property for the control
 under test
 to see wich control has the problem.

 Controls written in gambas could be suspected I think.
 Basicly spoken the method used does not look strange to me
 and I did long time ago something like this the same way.
 I found also a problem and had the exclude a few object by type
 checking. As far I remember I was also using the .Tag property.



 Best regards,

 Ron_1st

 --
  A: Delete the text you reply on.
  Q: What to do to get my post on top?
 ---
  A: Because it messes up the order in which people normally read text.
  Q: Why is top-posting such a bad thing?
 ---
  A: Top-posting.
  Q: What is the most annoying thing in e-mail?



 --
 Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
 is a gathering of tech-side developers  brand creativity professionals.
 Meet
 the minds behind Google Creative Lab, Visual Complexity, Processing, 
 iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
 Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Startup problems

2009-05-28 Thread Keith Clark
On Wed, 2009-05-27 at 23:12 -0700, charlesg wrote:
 I don't think you answered Diego's questions?

Indeed I did not, sorry about that.  I am using Ubuntu 9.04

 
 The last time I installed Gambas 2.8 from Applications, Add/Remove in Ubuntu
 9.04, the installation was incomplete and I had to go into Synaptic (system,
 administration, synaptic), do a search on Gambas and install the all related
 packages.
 
Spot on, thanks.  That did the trick!

Thanks to everyone for jumping in and helping.  Now, back to
programming!

Keith



--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] MySQL database interaction tutorial

2009-05-28 Thread Keith Clark
Is there a good MySQL interaction tutorial available?

Keith



--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.net componet

2009-05-28 Thread JOHN FERREIRA
Hi do I install components? Specifically gb.net ?
Thanks,
John



--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.net.curl - error codes.

2009-05-28 Thread Steven James Drinnan
Hi am completing another project. To get weather information from the HK
Observatory's web site. 

But I some times get error codes from the HTTP component.

1. Is there list of error codes that this component returns
2. Is there a method to reset the connection when I get an error?

 As when I run the program with no internet I get and error code
-1006 when I connect to the internet I get the same error. The only
way I have figured out was to restart the whole program. 

Details of program can be found here


http://sjdsoft.hk/Linux/Software/HKWeather/index.html

Any ideas?





--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disable controls by Tag

2009-05-28 Thread Ron_1st
On Thursday 28 May 2009, Jorge Carrión wrote:
 ¿Perhaps trying sonething like this?
 
 PUBLIC SUB btnQuick_Click() 'toggle button
 
   DIM hCtl AS Control
 
   IF btnQuick.Value = TRUE THEN
   FOR EACH hCtl IN FMain.Controls
   TRY hCtl.Enabled = (hCtl.Tag  exclude)
   NEXT
 
 it Is not very elegant but it works, I guess.
 Regards
 Jorge
 


I'n happy it works now at Jesus Guardon's box.

The TRY is also a nice way. You can try it to get more
speed in the loop and it gives a more nice text layout.

Against that way is you forget why you use the trick
and now it is good help to know a method to prevent
the error.
Any way if you start using the TRY method add a remark 
why it is used.



Best regards,

Ron_1st

-- 


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] server socket problem

2009-05-28 Thread Ron_1st
On Monday 25 May 2009, guiodic wrote:
 
 Ron_1st wrote:
  
  No, this is not correct.
  
  My internet connection is 20Mbits (20/8 = 2500 KByte/second)
  When I write 1Kb (8kbit) it goes with 20Mbs speed on the wire.
  
  Using packets of 1 KByte every second is a transfer rate (bandidth)
  The average is then the wished 1 Kbits using 1/2500 second and the
  remainder of 2499 Kbits is free for other tasks.
  
  
 
 Well, ok, my English is poor so I think there was a misunderstatement.
 
 But my problem now is how to avoid freezes caused by the WRITE instruction. 
 If this can give me a way to calculate how many kb the client receives in 1
 second, this is very good too.
 
 So, I think it is possible to calibrate the pause when the first freeze
 occours, but is a dirty solution, I prefer to avoid the freeze.
 


No problem, my english grammar is also bad, i'm dutch native :)
Hope the problem is solved after I have read the other comments.

Best regards,

Ron_1st

-- 

--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user