Re: [Gambas-user] Gambas Scripting Language - Some Questions

2009-05-21 Thread Sergio A. Hernandez
Yes, the gb.xml is installed on my system, it is visible under the tab COMPONENTS. Actually, I have the Gambas application that runs this example, and works fine as an application. 2009/5/21 Benoît Minisini > > 2009/5/18 Benoît Minisini > > > > > > Hello all, > > > > I have some questions about

Re: [Gambas-user] Gambas Scripting Language - Some Questions

2009-05-20 Thread Sergio A. Hernandez
2009/5/18 Benoît Minisini > > Hello all, > > I have some questions about the scripting language. I need a little help. > > Question > > > > Thanks in advance, and have a nice weekend. > > > > The scripter works by creating a temporary project from your script, by > compiling it, and by running it

Re: [Gambas-user] Web site translations

2009-05-20 Thread Sergio A. Hernandez
David, Do you need some help with the Spanish translation? Let me know. On Wed, May 20, 2009 at 8:55 AM, David Villalobos Cambronero < david_villalobo...@yahoo.com> wrote: > > I just started with the Spanish translation. > > Regards > > > -- > David > > > > - Original Message > From: Be

Re: [Gambas-user] Feature Request - Package Management

2009-05-19 Thread Sergio A. Hernandez
The idea itself sound nice, a unique way to install your favorite application. But, the concept is a contradiction to what Linux: is almost 300 different distros most of them active. 1000s of diferent projects, manuals, tutorials, books, etc. Some people think that is one of the weakest links of L

Re: [Gambas-user] C Code character manipulation - alternatives

2009-05-19 Thread Sergio A. Hernandez
String Functions in Gambas see http://gambas.sourceforge.net/ for detailed info about them. * *Asc* Returns the ASCII code of a character in a string. * *Chr$* Returns a character from its ASCII code. * *Comp* Compares two strings. * *InStr* Searches a string into another string. *

Re: [Gambas-user] How to control the PRINT output in console application

2009-05-16 Thread Sergio A. Hernandez
You can try something like this PRINT Format$(TimeVal, "-0.00"), Format$(height, "-0,000.00"), Format$(velocity, "-0.00") by doing this you force to insert 0 to make the numbers of the same size, but I think is kind of awkward to see 0220.00 instead of 220.00 If you want to have a nice aligned te

Re: [Gambas-user] Conect to Firebird

2009-05-15 Thread Sergio A. Hernandez
In your Package Manager (YAST/Synaptic/Etc) make sure that the following packages are installed (or in your case the first 3): gambas2-gb-db gambas2-gb-db-firebird gambas2-gb-db-form gambas2-gb-db-mysql gambas2-gb-db-odbc gambas2-gb-db-postgresql gambas2-gb-db-sqlite You can see the Beginners Gui

[Gambas-user] Gambas Scripting Language - Some Questions

2009-05-15 Thread Sergio A. Hernandez
Hello all, I have some questions about the scripting language. I need a little help. Question 1- The gbs2 scripter only have access to the gb. internal native class? 2- How can I use other components as the gb.XML? 3- Why my scripts dont run directly even when I am including the first line #!/usr/b

Re: [Gambas-user] Conect to Firebird

2009-05-15 Thread Sergio A. Hernandez
Try with the ODBC driver. On Fri, May 15, 2009 at 4:56 PM, cristian abarzua wrote: > Hello > > I tried to connect to the firebird server on my computer with the following > instructions: > > PUBLIC SUB Button1_Click() > >  DIM $hConn AS NEW Connection > >  WITH $hConn >    .Type = "firebird" >  

Re: [Gambas-user] Using Driver for Firebird

2009-05-14 Thread Sergio A. Hernandez
Use the generic driver ODBC to interact with Firebird or any other Database that supports this standard like MS SQL Server or Firebird in this case. On Thu, May 14, 2009 at 10:14 AM, cristian abarzua wrote: > Hello. > > Does anyone know how to connect to Firebird using the driver that comes with

Re: [Gambas-user] Re port for Gambas

2009-05-12 Thread Sergio A. Hernandez
       PRINT #hfile, "        copies CDATA #REQUIRED>" >        PRINT #hfile, "]>" >        PRINT #hfile, "" >          ' here you can replace next lines for a  "for each in" and > replace fields with mysq result and add some rows >  

Re: [Gambas-user] Testing Sites

2009-05-12 Thread Sergio A. Hernandez
This is an interesting proposal : A repository-like site of Gambas Projects. Sound nice. Probably, you can register a sourceforge project or even in a personal blog. I'm sure that some other programmers may be willing to help others and their selves by testing others software. On Mon, May 11, 20

Re: [Gambas-user] Re port for Gambas

2009-05-08 Thread Sergio A. Hernandez
Marc, I get confused, I made work Kugar work under C++ QT, but I'm not quite sure I can on Gambas. The best way with Gambas is, just like you said, create a HTML customized report. But is a time consuming project that probably Kido is not going to use anymore. If you can make work Kugar under gamba

Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-08 Thread Sergio A. Hernandez
PRINT "Leave" END PUBLIC SUB TextBox1_LostFocus() PRINT "Lost Focus" END PUBLIC SUB TextBox1_KeyPress() PRINT "KEY PRESS" END On Thu, May 7, 2009 at 9:50 PM, Sergio A. Hernandez wrote: > Probably the issue here is the event in which your code is.

Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-07 Thread Sergio A. Hernandez
Probably the issue here is the event in which your code is. When Gambas recognize the 'c' it changes .text to 1, that is why you are getting the "1l", What is the event you are using to perform the textbox validation? Try to change your validation code to the LostFocus() event. Probably will work

Re: [Gambas-user] How to create xml from table view?

2009-05-07 Thread Sergio A. Hernandez
I just wrote this example for a different subject. All you need to do is to encapsule the related lines in a external loop for each row, then you need to include the lines in a internal loop for each column. Obviously, you can rename the

Re: [Gambas-user] help with some simple parsing

2009-05-06 Thread Sergio A. Hernandez
Opps i uploaded the wrong file. Sorry. On Wed, May 6, 2009 at 9:50 PM, Sergio A. Hernandez wrote: > Try the following. It is a complete different approach using the XML Writer. > Try it as a console project, just make sure you the gb.xml is selected under > PROJECT\PROPERTIES\C

Re: [Gambas-user] help with some simple parsing

2009-05-06 Thread Sergio A. Hernandez
Try the following. It is a complete different approach using the XML Writer. Try it as a console project, just make sure you the gb.xml is selected under PROJECT\PROPERTIES\COMPONENTS ' Gambas module file PUBLIC SUB Main() DIM docXML AS XmlWriter docXML = NEW XmlWriter 'this line is to save th

Re: [Gambas-user] help with some simple parsing

2009-05-06 Thread Sergio A. Hernandez
Richard, See the attached file and let me know if this is the output you want. It is a HTML document. My approach is kind of different, probably the best way to handle this is by using the XML Writer. On Wed, May 6, 2009 at 8:52 AM, Stephen Bungay wrote: >   Hi Richard > >    This code snippet

Re: [Gambas-user] calling gambas server page from html form (post)

2009-05-03 Thread Sergio A. Hernandez
So far I remember you need to register use the following link: http://gambasdoc.org/help/register On Sun, May 3, 2009 at 3:40 AM, Joshua Higgins wrote: >>        Print Request["your_name"] >> > > Works fantastic. Just one more question: how would I go about helping to > write the tutorial on maki

Re: [Gambas-user] calling gambas server page from html form (post)

2009-05-03 Thread Sergio A. Hernandez
Joshua, I am writing a Getting Started 24 lessons book, and the part that I did figure out yet is the CGI Web Application lesson. If you are planning to release your tutorial under the terms of the GNU Free Doc License and you are interested, you can be co-author for this section of the book. http

Re: [Gambas-user] a Debug question

2009-05-03 Thread Sergio A. Hernandez
Doriano, >From my experience programming under languages that don't have any debugger at all like PHP-LAMP, the best thing to do in these cases is to create a debug subclass with a constructor that fills out all the data on a large form (however you want, with static or random data). That way you a

Re: [Gambas-user] a Debug question

2009-05-02 Thread Sergio A. Hernandez
My recommendation is you to print the values on the console to track them at "run-time", I prefer to use this technique more than use the integrated debugger, since you can follow up the overall outcome without start/stops. Some people don't like it, but I find it very useful. On Fri, May 1, 2009