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

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] 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 langauges so

[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)=

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
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] 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 definition in

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

[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

[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

[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

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 that d is 0 or 1

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

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

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(sBin)

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