[Gambas-user] Class Draw deprecated since Gambas 3.4

2013-01-25 Thread Pablo
Hello,

I'm a new user of gambas. I've seen that class Draw wil be deprecated 
since version 3.4. That means that from that version we can't use Draw?

Thanks

Pablo
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas and ssh

2010-06-23 Thread Pablo Ontivero
Hi, i'm trying to make a app for connect to a pc with ssh, i can connect
with the other system, but i don't know how to see all the process on a
TextArea.

PUBLIC conexion AS Process


PUBLIC SUB Button1_Click()

conexion = SHELL "ssh -l javier 192.168.1.92" FOR READ WRITE

END

PUBLIC SUB Button2_Click()

WRITE #conexion, "ls"

END


PUBLIC SUB Button3_Click()

  conexion.Kill
  
END

With this code, when i click Button1, i connect to the other pc, with
the button2 i write ls to the process, and with button3 o close the
process so the conection close too. I see with netstat, the connection
entablish and after press the button3 the connection close. I'm not sure
if when i press the button2 i send the command, but i don't know how to
see this. Please, anyone can help me? Thanks.



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas and ssh (Pablo Ontivero)

2010-06-23 Thread Pablo Ontivero

Well, thanks for all the answers, i don't have any idea of perl, so i don't 
know if i was able to make a app with that languaje. The ssh connect entablish 
with out problem, becouse gambas ask me for the password for the login.  but 
the problem is.. i can't see the process on a TextArea, i think it is like a 
make a "tty" o gambas. How can i see the output of the process? becouse if i 
put TO "variable" i got a sintaxis error.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Process output to TextArea Fail

2010-06-29 Thread Pablo Ontivero
Hello, the question is, when i try to print the output of the process on a 
TextArea, i have good results but if the output have more of 255 results, the 
app fails.

http://pastebin.com/Gyg4Ehhk

That link have the output of the shell command.

And the code is this

http://pastebin.com/Guw4B9DN

Thanks.
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Process output to TextArea Fail

2010-06-30 Thread Pablo Ontivero
Well, my system is Ubuntu 10.04, the version of gambas is the last release 
version on Ubuntu repo (2.19.0-2). I try with the QT version and the GTK+ 
version, but the fails, i don't notice any bug for the component. This answer 
your questions? Please tell me if you need more information. Thanks.
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Process output to TextArea Fail

2010-06-30 Thread Pablo Ontivero
Fails when is running on the debugger, i execute the app, and when it show 250 
lines, the console go slow and the app crash with error #11, but only if the 
TextArea show the content of the "Content" Variable who has the output of the 
process. Thanks.
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Base Conversion

2008-11-16 Thread Pablo Vera
Here is a VB6 code to convert to and from base36, it should work almost 
the same in Gambas:


' Support functions

' Get a base36 digit
Private Function D36(ByVal N As Integer) As String
  D36 = Chr$(N + IIf(N <= 9, 48, 55))
End Function

' base36 Logarithm
Private Function Log36(ByVal X As Double) As Double
  Log36 = Log(X) / Log(36#)
End Function


' Convert a base10 number (Num10) to base36 with a maximum of RNum digits
'
Public Function ToBase36(ByVal Num10 As Long, ByVal RNum As Integer) As 
String
Dim Num36 As String, Base As Long, Mult As Integer, E As Integer
  Num36 = String$(RNum, "0")
 
  If Num10 > 0 Then
E = Int(Log36(Num10))
   
Do
  Base = 36 ^ E
  Mult = Int(Num10 / Base)
  Mid$(Num36, RNum - E, 1) = D36(Mult)
 
  Num10 = Num10 - Mult * Base
  E = E - 1
Loop Until E < 0
  End If
 
  ToBase36 = Num36
End Function


' Convert a base36 number (Num36) back to base10
'
Public Function ToBase10(ByVal Num36 As String) As Long
Dim Num10 As Long, I As Integer, D As Long, C As String, E As Integer
  Num10 = 0
 
  E = Len(Num36)
  For I = E To 1 Step -1
C = UCase$(MID$(Num36, I, 1))
If C >= "A" And C <= "Z" Then
  D = ASc(C) - 55
ElseIf C >= "0" And C <= "9" Then
  D = ASc(C) - 48
Else
  D = 0
End If
Num10 = Num10 + D * (36 ^ (E - I))
  Next I
 
  ToBase10 = Num10
End Function

Pablo
_



Jason Hackney wrote:
> A cursory look through the docs didn't turn up anything... Is there a
> function to convert base, say base 10 to base 36? Or base 16 to base 36. I
> want to get to base 36 from either base10 or base16.
>
> It shouldn't be too difficult to hack something together, but was wondering
> if I'm overlooking something that's already there.
>
> Thanks!
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>   

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user