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
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
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
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)=
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
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()
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
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
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
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
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
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
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
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
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:
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)
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
17 matches
Mail list logo