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 wishes for your 
project! :-)

Doriano


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 said, I think, is 
that when the gambas part of the discussion is over, it is best to 
continue the discussion elsewhere, if wanted, as this list is for gambas 
questions.

Nobody wants to take away your candies - when you have questions, just 
post to this lists and, when you have experiences to share, post again - 
everyone in this list is here to exchange knowledge and advice (about 
gambas).

Regarding the randomize algorithm, well, I think we reached the goal 
but, if you still have doubts, try to post again...

Cheers,
Doriano


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 that finding meanings in wiki or google makes it
 hard- especially when I dont know which one applies.


 A good example:

 I was trying to find a command that changed the position in the order that
 components were drawn-I found that the command .raise did that- but I had
 previously thought the command raise meant to raise the event flag.

 English is not the best language to program in- or speak for that matter
 because the words have so many different meanings in different contexts.  It
 wasn't until I learned  a little Greek in bible college how imprecise
 English is unfortunately it is the only language I speak with any
 understanding.
   
Uhm... I don't like English, just like you, but perhaps you are too much 
critic. There are very precise words in English too, and Raise is one 
of them. If you put a control on the top of another, then you are 
effectively raising it; the fact in gambas RAISE has also another 
meaning is not an English fault (and nor a gambas one: think at raising 
an event like to throw it in the air, waiting for someone else to catch 
it. This figurates what the things actually are).

Don't be in a hurry - take your time and you will discover, day after 
day, that for programming english is as good as many other languages, 
and in this very moment English is the mean by which you and me communicate.

If you have questions about gambas, try to post: someone will reply and 
clarify things.

Regards and cheers,
Doriano


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

to do that in a program first i have to calculate the powers
so i have to write (y=number of digits) for the first of the digits y-1,second 
y-2etc

so if i have 5 digits then the power for the first one will be y-1=5-1=4

this is done by the Len(textbox1.text)

but HOW i will write Len(textbox1.text)=y ?

then how i can make the program to recognize that for the 1st digit entered in 
the Textbox1.text have to
give (d*2^y-1) (d=the digit that can be 0 or 1 and y the number of the digits) 
for the second (d*2^y-2)etc...

so the main question is how i can make JUST ONE TEXTBOX to understand that for 
every digits enter it will give something else for a result

sorry about my english but it has been long time since i had english lessons...
plz if u dont understand something let me know and i will try to explain 
better...
if you want to contact me directly :tsopanotr...@hotmail.com | 
vlahon...@gmail.com | ch...@vlahonick.freehost.gr

thanks in advance Vlahonick (all the truth is always in 
www.vlahonick.freehost.gr)

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 (1*2^4)+(0*2^3)+(0*2^2)+(1*2^1)+(1*2^0)=
 16+0+0+2+1=19
 
 to do that in a program first i have to calculate the powers
 so i have to write (y=number of digits) for the first of the digits 
 y-1,second y-2etc
 
 so if i have 5 digits then the power for the first one will be y-1=5-1=4
 
 this is done by the Len(textbox1.text)
 
 but HOW i will write Len(textbox1.text)=y ?
 
 then how i can make the program to recognize that for the 1st digit entered 
 in the Textbox1.text have to
 give (d*2^y-1) (d=the digit that can be 0 or 1 and y the number of the 
 digits) for the second (d*2^y-2)etc...
 
 so the main question is how i can make JUST ONE TEXTBOX to understand that 
 for every digits enter it will give something else for a result
 
 sorry about my english but it has been long time since i had english 
 lessons...
 plz if u dont understand something let me know and i will try to explain 
 better...
 if you want to contact me directly :tsopanotr...@hotmail.com | 
 vlahon...@gmail.com | ch...@vlahonick.freehost.gr
 
 thanks in advance Vlahonick (all the truth is always in 
 www.vlahonick.freehost.gr)
 
 _
 News, entertainment and everything you care about at Live.com. Get it now!
 http://www.live.com/getstarted.aspx
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

Hi Vlahonick,

I'm not sure to understand exactly what you want to do!
1) If you want to convert a bynary number to decimal value, 
you just have to write in Gambas exactly what you sayd in 
your message! :)
2) If you want to display the changing decimal value as soon 
as you enter a binary digit, this is not possible because 
you don't know what WILL be the final length of the binary 
number!

For the 1) comprehension, here is an exemple (I took a 
TextArea because I want to start a new line in the text)

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 += d * (2 ^ (y-i))
NEXT
TextArea1.Text = \nBinary   S   = decimal   Str(N)
END

Hope I understand you!
Dominique Simonart


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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()
Dim StrBin As String

StrBin = Me.txtBin

If StrBin   Then

Me.lblDec.Caption = CStr(dec(StrBin))

Else

Me.lblDec.Caption = n.a.

End If

End Sub


Private Function dec(ByVal StrBin As String) As Long
Dim i As Integer
Dim l As Integer
Dim c As String



l = Len(StrBin)

dec = 0

For i = 1 To l

c = Mid(StrBin, i, 1)

If c = 1 Then
dec = dec + 2 ^ (l - i)
End If

Next i

End Function



very best regards

Emil




-Ursprüngliche Nachricht-
Von: Simonart Dominique [mailto:simonart.domini...@wanadoo.fr]
Gesendet: Dienstag, 14. April 2009 14:04
An: mailing list for gambas users
Betreff: Re: [Gambas-user] binary numeral system


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 (1*2^4)+(0*2^3)+(0*2^2)+(1*2^1)+(1*2^0)=
 16+0+0+2+1=19

 to do that in a program first i have to calculate the powers
 so i have to write (y=number of digits) for the first of the digits
y-1,second y-2etc

 so if i have 5 digits then the power for the first one will be y-1=5-1=4

 this is done by the Len(textbox1.text)

 but HOW i will write Len(textbox1.text)=y ?

 then how i can make the program to recognize that for the 1st digit
entered in the Textbox1.text have to
 give (d*2^y-1) (d=the digit that can be 0 or 1 and y the number of the
digits) for the second (d*2^y-2)etc...

 so the main question is how i can make JUST ONE TEXTBOX to understand that
for every digits enter it will give something else for a result

 sorry about my english but it has been long time since i had english
lessons...
 plz if u dont understand something let me know and i will try to explain
better...
 if you want to contact me directly :tsopanotr...@hotmail.com |
vlahon...@gmail.com | ch...@vlahonick.freehost.gr

 thanks in advance Vlahonick (all the truth is always in
www.vlahonick.freehost.gr)

 _
 News, entertainment and everything you care about at Live.com. Get it now!
 http://www.live.com/getstarted.aspx
 --

 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


Hi Vlahonick,

I'm not sure to understand exactly what you want to do!
1) If you want to convert a bynary number to decimal value,
you just have to write in Gambas exactly what you sayd in
your message! :)
2) If you want to display the changing decimal value as soon
as you enter a binary digit, this is not possible because
you don't know what WILL be the final length of the binary
number!

For the 1) comprehension, here is an exemple (I took a
TextArea because I want to start a new line in the text)

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 += d * (2 ^ (y-i))
NEXT
TextArea1.Text = \nBinary   S   = decimal   Str(N)
END

Hope I understand you!
Dominique Simonart



--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 gambas or basic and basic terms do not
 always
 match 
 terms in other langauges so that finding meanings in wiki or google makes
 it
 hard- especially when I dont know which one applies.


 A good example:

 I was trying to find a command that changed the position in the order
 that
 components were drawn-I found that the command .raise did that- but I had
 previously thought the command raise meant to raise the event flag.

 English is not the best language to program in- or speak for that matter
 because the words have so many different meanings in different contexts. 
 It
 wasn't until I learned  a little Greek in bible college how imprecise
 English is unfortunately it is the only language I speak with any
 understanding.
   
 Uhm... I don't like English, just like you, but perhaps you are too much 
 critic. There are very precise words in English too, and Raise is one 
 of them. If you put a control on the top of another, then you are 
 effectively raising it; the fact in gambas RAISE has also another 
 meaning is not an English fault (and nor a gambas one: think at raising 
 an event like to throw it in the air, waiting for someone else to catch 
 it. This figurates what the things actually are).
 
 Don't be in a hurry - take your time and you will discover, day after 
 day, that for programming english is as good as many other languages, 
 and in this very moment English is the mean by which you and me
 communicate.
 
 If you have questions about gambas, try to post: someone will reply and 
 clarify things.
 
 Regards and cheers,
 Doriano
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/In-Plain-English--A-definition-of-the-Datatypes-please--tp22983213p23035746.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 = binResult + CInt(Mid(binString, i, 1)) * Exp2(length -
i)
  NEXT 

  RETURN binResult  
END




On Tue, 2009-04-14 at 14:24 +0200, Emil Tchekov wrote:
 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()
 Dim StrBin As String
 
 StrBin = Me.txtBin
 
 If StrBin   Then
 
 Me.lblDec.Caption = CStr(dec(StrBin))
 
 Else
 
 Me.lblDec.Caption = n.a.
 
 End If
 
 End Sub
 
 
 Private Function dec(ByVal StrBin As String) As Long
 Dim i As Integer
 Dim l As Integer
 Dim c As String
 
 
 
 l = Len(StrBin)
 
 dec = 0
 
 For i = 1 To l
 
 c = Mid(StrBin, i, 1)
 
 If c = 1 Then
 dec = dec + 2 ^ (l - i)
 End If
 
 Next i
 
 End Function
 
 
 
 very best regards
 
 Emil
 
 
 
 
 -Ursprüngliche Nachricht-
 Von: Simonart Dominique [mailto:simonart.domini...@wanadoo.fr]
 Gesendet: Dienstag, 14. April 2009 14:04
 An: mailing list for gambas users
 Betreff: Re: [Gambas-user] binary numeral system
 
 
 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 (1*2^4)+(0*2^3)+(0*2^2)+(1*2^1)+(1*2^0)=
  16+0+0+2+1=19
 
  to do that in a program first i have to calculate the powers
  so i have to write (y=number of digits) for the first of the digits
 y-1,second y-2etc
 
  so if i have 5 digits then the power for the first one will be y-1=5-1=4
 
  this is done by the Len(textbox1.text)
 
  but HOW i will write Len(textbox1.text)=y ?
 
  then how i can make the program to recognize that for the 1st digit
 entered in the Textbox1.text have to
  give (d*2^y-1) (d=the digit that can be 0 or 1 and y the number of the
 digits) for the second (d*2^y-2)etc...
 
  so the main question is how i can make JUST ONE TEXTBOX to understand that
 for every digits enter it will give something else for a result
 
  sorry about my english but it has been long time since i had english
 lessons...
  plz if u dont understand something let me know and i will try to explain
 better...
  if you want to contact me directly :tsopanotr...@hotmail.com |
 vlahon...@gmail.com | ch...@vlahonick.freehost.gr
 
  thanks in advance Vlahonick (all the truth is always in
 www.vlahonick.freehost.gr)
 
  _
  News, entertainment and everything you care about at Live.com. Get it now!
  http://www.live.com/getstarted.aspx
  --
 
  This SF.net email is sponsored by:
  High Quality Requirements in a Collaborative Environment.
  Download a free trial of Rational Requirements Composer Now!
  http://p.sf.net/sfu/www-ibm-com
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 Hi Vlahonick,
 
 I'm not sure to understand exactly what you want to do!
 1) If you want to convert a bynary number to decimal value,
 you just have to write in Gambas exactly what you sayd in
 your message! :)
 2) If you want to display the changing decimal value as soon
 as you enter a binary digit, this is not possible because
 you don't know what WILL be the final length of the binary
 number!
 
 For the 1) comprehension, here is an exemple (I took a
 TextArea because I want to start a new line in the text)
 
 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 += d * (2 ^ (y-i))
 NEXT
 TextArea1.Text = \nBinary   S   = decimal   Str(N)
 END
 
 Hope I understand you!
 Dominique Simonart
 
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 

[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 String
DIM i, y, N, d AS Integer
 
S = Textbox1.Text
y = Len(S)
IF y = 0 THEN RETURN
N = 0
FOR i = 1 TO y
   d = Val(Mid(S, i, 1)) 
   N += d * (2 ^ (y - i))
NEXT
Textbox2.Text = N 
END

PUBLIC SUB Button2_Click()

ty all again , Vlahonick

  textbox1.text = 
  TextBox2.text = 

END



_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[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 message in context: 
http://www.nabble.com/open-office-text-document-tp23042958p23042958.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[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 databrowser.filter.
what is the problem with this:

dim uno as string
uno=datacontrol1.value
databrowser1.filter =clientcode=uno

i always get a sql error.

Thanks


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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
N += d * (2 ^ (y-i))
 NEXT
 TextArea1.Text = \nBinary   S   = decimal   Str(N)
 END

 
 
 
 function bin2dec(sBin) as long
   dim r as long
   r=0
   for i= 1 to len(sBin)
 r = r*2 + Val(Mid(sBin, i, 1))
   next
   return r
 end
 
 PUBLIC SUB Button1_Click()
TextArea1.Text = \nBinary   TextArea1.Text   = decimal
 bin2dec(TextArea1.Text)
 END
 for 10011 as sBin the sequence is as follows:
 r*2=0  +1 = 1
 r*2=2  +0 = 2
 r*2=4  +0 = 4
 r*2=8  +1 = 9
 r*2=18 +1 =19
 
 
 I does not matter the size of input string.
 The only limit is r should of apropiate type
 to hold the result.
 Multiply is faster as Power
 
 
 Best regards,
 
 Ron_1st
 

Thanks Ron!

You're right, there is no need to use the power factor at 
all! My mind was not opened enough to see that!


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 another
message about Input Box wrong size (
http://www.nabble.com/Input-box-incorrect-size-of-the-text-control.-My-first-problem.-td23013689.html
here ) and this solution made it fixed as well.

Best regards,
-- 
View this message in context: 
http://www.nabble.com/X-coordinate-of-a-Form-Frame.-My-Second-Problem.-tp23013834p23047163.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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.-tp23013689p23047372.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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) as long
 dim r as long
 r=0
 for i= 1 to len(sBin)
 r = r*2 + Val(Mid(sBin, i, 1)) 
 next
 return r
 end
 

_
Need a new place to rent, share or buy? Let ninemsn property search for you.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline_t=774152450_r=Domain_tagline_m=EXT
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user