Re: [Gambas-user] A web page for Gambas applications

2009-08-11 Thread abdurrahman ulusoy
hii translate to english kedicad site
http://cadcizim.googlepages.com/kedicadenglish(i hope people can understand. :) 
)but software i cant. because in gambas Project/translate then errorFor 
Turkish translate file can not read.File already exists(error message is  in 
Turkish. but like this) 

--- 30/07/09 Per tarihinde Fabien Bodard gambas...@gmail.com şöyle yazıyor:

Kimden: Fabien Bodard gambas...@gmail.com
Konu: Re: [Gambas-user] A web page for Gambas applications
Kime: mailing list for gambas users gambas-user@lists.sourceforge.net
Tarihi: 30 Temmuz 2009 Perşembe, 14:58

2009/7/27 abdurrahman ulusoy uluso...@yahoo.com:
An english traduction of your software will be great too :) (and the site 
...:-)    Yes but i am sure, you understand, my english is not good.
Neither mine but if you begin to traduce, even with a bad english i
thing many people will come to help you in your project, and correct
you little errors, ... and then you program can be traduced from the
english to many other language and so found undred and undred users...
:-) So it is really something important, and gambas make that easy to
do

CAD in gambas ... good work !Gambas is easy and rapid language. infact  a lot 
of linux user say me:in linux use C or python. they dont like gambas.  but i 
like   :)

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



  ___
Yahoo! Türkiye açıldı!  http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] pickle?

2009-08-11 Thread Peter Tyler


Hi, I'm a bit Gambas newbie, - I've been using Python. 

One thing I'm looking for in Gambas is something like the python pickle 
functionality.

Does anyone know if this functionality is available?

Thank you.
   Peter.

Find local businesses and services in your area with Yahoo!7 Local. Get started.


  
__
Find local businesses and services in your area with Yahoo!7 Local.
Get started: http://local.yahoo.com.au
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Combobox returns item and item_key

2009-08-11 Thread Hugo Chillon

Sorry Doriano, it's true. res.Count  0 is the correct way.

And this class works well if all 'sort' process for items are in the SQL
sentence including an ORDER BY ... in strWhere.

Hugo Chillon




Hugo Chillon wrote:
 
 For people who looks for a combobox to show items from a database table
 column but need combobox returns item_key from another column, this is a
 class for them:
 
 ' Gambas class file
 '***
 '*  ComboBoxPlus class
 '*
 '* Autor: Hugo Chillon Estefanell
 '* Date: 09/08/2009
 '*
 '* ComboBoxPlus is a class designed to allow a ComboBox works with 2
 '* columns from a database table. First column for the key_item, second
 '* column for the item. Combobox shows item and ComboBoxPlus.ItemId()
 '* returns key_item
 
 '* This class call a class (MysqlConnection) to access a database and
 obtain
 '* a Result object with data. You should use your own method to obtain the
 '* Result object
 '**
 
 PRIVATE cboBase AS NEW Object[]
 PRIVATE cbo AS ComboBox
 
 
 PUBLIC SUB _New(combo AS ComboBox)
 cbo = combo 
 END
 
 
 PUBLIC SUB Populate(strTable AS String, strIndex AS String, strValue AS
 String, strWhere AS String)
 
 DIM conn AS MysqlConnection
 DIM strSQL AS String
 DIM res AS Result
 
 strSQL = SELECT   strIndex  ,   strValue   FROM   strTable
 strWhere
 
 conn = NEW MysqlConnection
 res = conn.RunDSQ(strSQL)
 IF res.Count  1 THEN 
 res.MoveFirst
 cbo.Add()
 cboBase.Add([, ])
 DO WHILE res.Available
 cbo.Add(res[1])
 cboBase.Add([res[0], res[1]])
 res.MoveNext
 LOOP
 ENDIF
 END
 
 
 PUBLIC FUNCTION ItemId() AS Integer
   
 DIM intValue AS Integer
 
 intValue = cboBase[cbo.Index][0]
 RETURN intValue
   
 END
 

-- 
View this message in context: 
http://www.nabble.com/Combobox-returns-item-and-item_key-tp24910878p24913137.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling on Suse 11.1 was : Compiling Gambas 3 svn on Ubuntu

2009-08-11 Thread Laurent Carlier
Le samedi 08 août 2009 00:04:01 Benoît Minisini, vous avez écrit :
  2009/8/7 Benoît Minisini gam...@users.sourceforge.net
 
Here you go!
   
2009/8/7 Benoît Minisini gam...@users.sourceforge.net
  
   These lines are strange:
  
   ...
   checking whether we are using the GNU C compiler... no
   checking whether gcc accepts -g... no
   checking for gcc option to accept ISO C89... unsupported
   ...
  
   Did you correctly install gcc?
  
   --
   Benoît
 
  Mmmm, it was installed via standard Ubuntu package manager at install,
  however 9.10 is only to the alpha 3 stage.
 
  I have compiled other stuff ok?

 Then there is something broken on your system, or a big uncompatible change
 in gcc: the configure script found the gnu C++ compiler normally, but not
 the gnu C compiler. I can't say more at the moment...

Got the same problem under debian sid 64 and arch linux 64; all is building 
fine with 2.0 but not with trunk :-/

++

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling on Suse 11.1 was : Compiling Gambas 3 svn on Ubuntu

2009-08-11 Thread Leonardo Miliani
IMHO... in the last months several GNU tools have been upgraded, like 
autoconf, gcc and libtool. I think the Gambas code should be updated to 
be compatible with them because it is quite impossible, now, to compile 
Gambas on systems that are up-to-date every day. It is a problem that 
I've encountered with other old softwares too, on Arch.

Leo.

-- 
Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pickle?

2009-08-11 Thread Steven revimmo
Hi,

As far as I know, it's used to write/read any variable in a file.
So, you can write objects, numbers, arrays, anything into a file, and
get them back
without conversion or analyses of the text in the file.

Very handy indeed.

Steven


Le mardi 11 août 2009 à 11:06 +0200, Leonardo Miliani a écrit :

 Peter Tyler ha scritto:
  
  Hi, I'm a bit Gambas newbie, - I've been using Python. 
  
  One thing I'm looking for in Gambas is something like the python pickle 
  functionality.
  
  Does anyone know if this functionality is available?
  
  Thank you.
 Peter.
  
 
 It should be interesting know exactly what the pickle func. does .
 I don't know Python, and maybe several other Gambas users too ;-)
 
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pickle?

2009-08-11 Thread Rob
On Tuesday 11 August 2009 02:32 am, Peter Tyler wrote:
 One thing I'm looking for in Gambas is something like the
 python pickle functionality.
 Does anyone know if this functionality is available?

Benoit used to talk about object persistence/serialization as a 3.0 
feature, but I don't know the status of that yet.  As Steven posted, you 
can always just write data types to a file directly, but to write them in a 
semi-human-readable format like pickle does would probably need its own 
component or module.

Parsing existing pickle data would probably not be that hard; I've done it 
in Perl on a number of occasions.

Rob



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pickle?

2009-08-11 Thread Leonardo Miliani
Steven revimmo ha scritto:
 Hi,
 
 As far as I know, it's used to write/read any variable in a file.
 So, you can write objects, numbers, arrays, anything into a file, and
 get them back
 without conversion or analyses of the text in the file.

Something similar to a memory dump of the object, isn't it?
Interesting... So it could be possible, i.e., to create a form, dump it 
into a file and load it at runtime from a Gambas app, maybe?

-- 
Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] can't change colour in a DataControl - oops huh?

2009-08-11 Thread Charlie Reinl
Am Dienstag, den 11.08.2009, 04:55 +0200 schrieb Jean-Yves F. Barbier:
 Charlie Reinl a écrit :
  Am Montag, den 10.08.2009, 17:24 +0200 schrieb Jean-Yves F. Barbier:
  Jean-Yves F. Barbier a écrit :
  Hi list,
 
  Under a Databrowser, I've got some DataControls I'd like to change 
  background's color.
 
  However, it don't work at all: 
  dtc_label.Background = H00FF00 
  or  dtc_label.Background = HFF00
  don't change anything (and trying to escape the '' gives me an error: 
  unexpected '\')
  Oops: I forgot to say I'm under Gambas V. 2.15.2
  Huh?: It even don't work as native (if I change BG colour in properties)!?
 
  JY
  
  Salut Jean-Yves,
  
  Databrowser is a part of an component made in gambas, you find the
  source code
  /where/you/have/your/gambas2.15.2-Sources/comp/src/gb.db.form 
  load the project into the IDE and retry.
 
 Hi Charlie,
 
 I didn't build it: I was about to when it comes in Debian sid :)
 and the gb.db.form is checked in my project's components.
 sniff
  
 JY

Salut Jean-Yves,

you can find them on shrine
http://prdownloads.sourceforge.net/gambas/gambas2-2.15.2.tar.bz2?download
Unpack and copy
/where/you/have/your/gambas2.15.2-Sources/gambas2-2.15.2/comp/src/gb.db.form  
to your working directory, load the project into the IDE and retry.

If need more help let me know!

-- 
Amicalment
Charlie


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pickle?

2009-08-11 Thread Fabien Bodard
gb.setting do that in some way

2009/8/11 Leonardo Miliani leona...@leonardomiliani.com:
 Steven revimmo ha scritto:
 Hi,

 As far as I know, it's used to write/read any variable in a file.
 So, you can write objects, numbers, arrays, anything into a file, and
 get them back
 without conversion or analyses of the text in the file.

 Something similar to a memory dump of the object, isn't it?
 Interesting... So it could be possible, i.e., to create a form, dump it
 into a file and load it at runtime from a Gambas app, maybe?

 --
 Web: www.leonardomiliani.com
 E-mail: leona...@leonardomiliani.com
 Scegli software opensource - Choose opensource software

 Co-fondatore di Gambas-it.org
 Il sito di riferimento della comunità italiana degli utenti di Gambas
 www.gambas-it.org

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] can't change colour in a DataControl - oops huh?

2009-08-11 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit :
 Am Dienstag, den 11.08.2009, 04:55 +0200 schrieb Jean-Yves F. Barbier:
 Charlie Reinl a écrit :
 Am Montag, den 10.08.2009, 17:24 +0200 schrieb Jean-Yves F. Barbier:
 Jean-Yves F. Barbier a écrit :
 Hi list,

 Under a Databrowser, I've got some DataControls I'd like to change 
 background's color.

 However, it don't work at all: 
 dtc_label.Background = H00FF00 
 or  dtc_label.Background = HFF00
 don't change anything (and trying to escape the '' gives me an error: 
 unexpected '\')
 Oops: I forgot to say I'm under Gambas V. 2.15.2
 Huh?: It even don't work as native (if I change BG colour in properties)!?

 JY
 Salut Jean-Yves,

 Databrowser is a part of an component made in gambas, you find the
 source code
 /where/you/have/your/gambas2.15.2-Sources/comp/src/gb.db.form 
 load the project into the IDE and retry.
 Hi Charlie,

 I didn't build it: I was about to when it comes in Debian sid :)
 and the gb.db.form is checked in my project's components.
 sniff
  
 JY
 
 Salut Jean-Yves,
 
 you can find them on shrine
 http://prdownloads.sourceforge.net/gambas/gambas2-2.15.2.tar.bz2?download
 Unpack and copy
 /where/you/have/your/gambas2.15.2-Sources/gambas2-2.15.2/comp/src/gb.db.form
   to your working directory, load the project into the IDE and retry.
 
 If need more help let me know!

Salut Charlie,

I keep it for modification (I overcame this by changing the whole window 
backgroung:)
Thanks.

-- 
JY

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user