Re: [Gambas-user] use a string as a var

2009-11-16 Thread Fabien Bodard
do you nean :

mystr=Object.Call(Class1, class1Member)

??

2009/11/15 Jean-Yves F. Barbier 12u...@gmail.com:
 Hi,

 I'm building a string and I'd like to use this string as a var,
 how could I do that?

 myclass = class1
 mystr = class1  .  class1member
 res = mystr ' PB: copy 'mystr' into 'res' instead of getting result

 --
 BOFH excuse #51:
 Cosmic ray particles crashed through the hard disk platter

 --
 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] use a string as a var

2009-11-16 Thread Fabien Bodard
2009/11/16 Doriano Blengino doriano.bleng...@fastwebnet.it:
 You can also look at the EVAL function (only in gambas3 perhaps?) - more
no it exist in gb1 too ;)
 general (and more slow).

 Regards.
 do you nean :

 mystr=Object.Call(Class1, class1Member)

 ??

 2009/11/15 Jean-Yves F. Barbier 12u...@gmail.com:

 Hi,

 I'm building a string and I'd like to use this string as a var,
 how could I do that?

 myclass = class1
 mystr = class1  .  class1member
 res = mystr ' PB: copy 'mystr' into 'res' instead of getting result

 --
 BOFH excuse #51:
 Cosmic ray particles crashed through the hard disk platter

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


 --
 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] Setting and environment variable in a Gambas app.

2009-11-16 Thread Joshua Higgins

 Application.Env[GDK_NATIVE_WINDOWS]=1


I can't seem to get this working. Instead, I put it in the environment tab
of the project properties in the IDE, and that works.
--
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] Setting and environment variable in a Gambas app.

2009-11-16 Thread Toni
Hi,
Setting the GDK_NATIVE_WINDOWS var in the environment tab of the project 
only works while using the gambas app within the IDE but with the 
generated executable this var doesn't get set, and so the controls get 
erroneously rendered.
About setting it in ~/.gnomerc the point was not having to set it 
manually in each affected system... or did you suggest adding the var 
programatically to this file?
Regards,
Toni

En/na Joshua Higgins ha escrit:
 Application.Env[GDK_NATIVE_WINDOWS]=1

 

 I can't seem to get this working. Instead, I put it in the environment tab
 of the project properties in the IDE, and that works.
 --
 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


[Gambas-user] bug?

2009-11-16 Thread Jean-Yves F. Barbier
Debian sid
gb 2.17
==

Hi,

I've got a module with public string  connection:

PUBLIC $DBConn AS NEW Connection
PUBLIC MyHost AS String
PUBLIC MyDB AS String
PUBLIC MyUsr AS String
PUBLIC MyPass AS String
'-
PUBLIC FUNCTION DBConnect() AS Boolean
PRINT MyDB  .  MyHost  .  MyUsr  :  MyPass
  WITH $DBConn
.Type = postgresql
.Host = MyHost
.Name = MyDB
.Port = 5432
.Login = MyUsr
.Password = MyPass
  END WITH 
  TRY $DBConn.Open
  IF ERROR THEN 
 Message.Error((Can't connect to DB)  \n\n  Error.Text)
RETURN FALSE
  ELSE 
RETURN TRUE
  ENDIF 
END

If I forget to fill MyHost  MyDB from the class that calls it, the 
function don't raise any error and returns TRUE (?)

How can that be?

JY
-- 
I don't care what star you're following, get that camel off my front lawn!
-- Heard in Bethlehem

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