Re: [Gambas-user] open office text document

2009-04-14 Thread Doriano Blengino
juelin ha scritto: > hello, > how can I show an open office text document (odt) into gambas > textarea or some object like this? > the document include pictures. > > the object embeded is not possible, while the user do not change the > document > and the document is not open with open office. > >

[Gambas-user] Gambas Server Pages & mysql

2009-04-14 Thread Dimitris Anogiatis
Hey guys, With the example below Gambas Server Pages were introduced. My question is: 1) how would I achieve a connection to a mysql database or any database for that matter? 2) where in the code below would I put the necessary statements? 3) if no direct reference to any database objects can be

Re: [Gambas-user] databrowser.delete and databrowser.filter

2009-04-14 Thread Ron_1st
On Tuesday 14 April 2009, nando wrote: > dim uno as string > uno=datacontrol1.value > databrowser1.filter ="clientcode=uno" > Chane it to databrowser1.filter ="clientcode=" & uno Best regards, Ron_1st -- -- This SF.

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Ron_1st
On Wednesday 15 April 2009, Jeff Gray wrote: > > That's pretty cool. > > My only comment would be that it took me a few goes at stepping through the > code before I worked out how the blazes it worked, so perhaps less readable > than the exponent version. > > But hey - I'm no rocket scientis

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Jeff Gray
That's pretty cool. My only comment would be that it took me a few goes at stepping through the code before I worked out how the blazes it worked, so perhaps less readable than the exponent version. But hey - I'm no rocket scientist :-) > From: ron...@tiscali.nl > > > > function bin2dec(s

Re: [Gambas-user] open office text document

2009-04-14 Thread jbskaggs
I convert odt to HTML and display in a control such as TextEdit. Otherwise you will need to write a conversion code to convert ODT into HTML or Text for Gambas. IN Gambas that is what Rich Text editing is - it is basically HTML. Personally if you could write a ODT converter I would be very happ

Re: [Gambas-user] Input box incorrect size of the text control. My first problem.

2009-04-14 Thread agrgal
Thank you Richard. Still learning GAMBAS! I'll test your solution when I could, but a standard Inputbox should look normal, shouldn't it? Anyway, I'll take it in consideration. -- View this message in context: http://www.nabble.com/Input-box-incorrect-size-of-the-text-control.-My-first-problem.-

Re: [Gambas-user] Input box incorrect size of the text control. My first problem.

2009-04-14 Thread agrgal
Please, see this http://www.nabble.com/Re%3A-X-coordinate-of-a-Form-Frame.-My-Second-Problem.-p23047163.html reply . -- View this message in context: http://www.nabble.com/Input-box-incorrect-size-of-the-text-control.-My-first-problem.-tp23013689p23047199.html Sent from the gambas-user mailing

Re: [Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-14 Thread agrgal
This solution...: Try with gb.qt to see the difference. worked! Thank you. If it's relevant, I developed my project using gambas in a ASUS EEEPC Ubuntu based on Ubuntu Hardy. I installed the project in a normal Ubuntu Hardy and run all the same with the same problem. The fact is that I posted a

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Simonart Dominique
Ron_1st a écrit : > On Tuesday 14 April 2009, Simonart Dominique wrote: >> PUBLIC SUB Button1_Click() >> DIM S AS String >> DIM i, y, N AS Integer >> >> S = TextArea1.Text >> y = Len(S) >> if y = 0 THEN RETURN >> N = 0 >> FOR i = 1 to y >>d = Val(Mid(S, i, 1)) ' I assume

[Gambas-user] databrowser.delete and databrowser.filter

2009-04-14 Thread nando
Hi, first sorry for my little english. i have two questions: can i change the way databrowser.delete works? I don't want it to really delete a register, i have a field called online (yes/no), and i want just to change that value. Is it posible with databrowser? the other question is about databr

[Gambas-user] open office text document

2009-04-14 Thread juelin
hello, how can I show an open office text document (odt) into gambas textarea or some object like this? the document include pictures. the object embeded is not possible, while the user do not change the document and the document is not open with open office. kind regards Jürgen -- View this me

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Ron_1st
On Tuesday 14 April 2009, Simonart Dominique wrote: > PUBLIC SUB Button1_Click() > DIM S AS String > DIM i, y, N AS Integer > >     S = TextArea1.Text >     y = Len(S) >     if y = 0 THEN RETURN >     N = 0 >     FOR i = 1 to y >        d = Val(Mid(S, i, 1)) ' I assume that d is 0 or 1 >        N

Re: [Gambas-user] In Plain English- A definition of the Datatypes please?

2009-04-14 Thread Jussi Lahtinen
Getting little off-topic but... My native language is Finnish, but my operating system and every program on my computer is in English. Because all (at least almost) the new words arising form computer world are first in English. I don't want to do double job to learn them also in Finnish. In fact,

[Gambas-user] ty

2009-04-14 Thread vlahonick vlahonick
THANKS YOU ALL for your replies... every anwser was very interesting but the simplest and best solution was Dominique's (special thanks). here is the final code : ' Gambas class file ' Designed by Vlahonick PUBLIC SUB _new() END PUBLIC SUB Form_Open() END PUBLIC SUB Button1_Click() DIM S AS

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Jeff
Gah - you just beat me :-) Mine is as follows. Interesting to see different styles/solutions: PRIVATE FUNCTION myBin(binString AS String) AS Long DIM i AS Integer DIM length AS Integer DIM binResult AS Long = 0 length = Len(binString) FOR i = length TO 1 STEP -1 binResult =

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Emil Tchekov
Just checked the gambas online documentation. The TextBox does have "CHANGE" event - thus it is possible to make converter wich reacts on each additional letter typed as example here my "fast shoot" maded in VB6 - very simple and without error handling (BUT WORKING!) Private Sub txtBin_Change()

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Simonart Dominique
vlahonick vlahonick a écrit : > > hello all :D > > i am trying to create a program that calculates a number from the binary > numeral system and gives a result > > example of what the program will do : > > we have the number (at binary numeral system) 10011 > > so to have result we have to do

Re: [Gambas-user] binary numeral system

2009-04-14 Thread Emil Tchekov
Hi, I do not have so much experience with Gambas, but a lot with VB What I will do in such case: Write a subroutine that gets string as input and converts it in a decimal number. Than create your control (text box) and bind the change event (AfterUpdate in VB) with your routine... That is all

[Gambas-user] binary numeral system

2009-04-14 Thread vlahonick vlahonick
hello all :D i am trying to create a program that calculates a number from the binary numeral system and gives a result example of what the program will do : we have the number (at binary numeral system) 10011 so to have result we have to do (1*2^4)+(0*2^3)+(0*2^2)+(1*2^1)+(1*2^0)= 16+0+0+2+1

Re: [Gambas-user] In Plain English- A definition of the Datatypes please?

2009-04-14 Thread jbskaggs
You are correct:) Thanks for your kind words. JB Doriano Blengino wrote: > > jbskaggs ha scritto: >> Thank you, >> >> I shall search more. One of the problems I find is that many of the >> terms >> have multiple meanings for example their meaning in mathmetics does not >> always equal the def

Re: [Gambas-user] In Plain English- A definition of the Datatypes please?

2009-04-14 Thread Doriano Blengino
jbskaggs ha scritto: > Thank you, > > I shall search more. One of the problems I find is that many of the terms > have multiple meanings for example their meaning in mathmetics does not > always equal the definition in gambas or basic and basic terms do not always > match > terms in other langaug

Re: [Gambas-user] A random sort of listview

2009-04-14 Thread Doriano Blengino
jbskaggs ha scritto: > It is Gambas related! Where else are noobs like me going to learn this? > > Please continue as you are both teaching me Maestros! To stop now would be > like taking candy from a baby just after the wrapper was opened. > Thanks for your appreciation words. What Dominique

Re: [Gambas-user] shared librarry into gambas

2009-04-14 Thread Doriano Blengino
M0E Lnx ha scritto: > Thanks a lot man... This certainly helps. > > I'll see if I can follow your example into making something useful with > libparted. > > I found the API references here > http://www.gnu.org/software/parted/api/modules.html > Ok, this documentation seems a big step forward...