Re: [Gambas-user] Please help me

2011-11-11 Thread John Spikowski
On Fri, 2011-11-11 at 19:11 -0800, Avenger wrote: > Any suggestions to uncompress that .gambas file John? > Finally, the archiver is a program that creates a Gambas executable from a Gambas project directory. Note that a Gambas executable is just an uncompressed archive of a project. It can incl

[Gambas-user] Install Gambas 3

2011-11-11 Thread Keith Clark
I'm going to install Gambas 3 on my Ubuntu 11.10 computer and was wondering if I should remove the already installed Gambas 2.2 first? Thanks, Keith -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.s

Re: [Gambas-user] Please help me

2011-11-11 Thread Avenger
John Spikowski-3 wrote: > > On Fri, 2011-11-11 at 17:01 -0800, Avenger wrote: >> > >> Thank you Fabien, do you know a way to do that? or where i could find a >> way >> to decompile my .gambas file? > > As I understand it, the .gambas file is nothing more than a compressed > version of the p

Re: [Gambas-user] Please help me

2011-11-11 Thread John Spikowski
On Fri, 2011-11-11 at 17:01 -0800, Avenger wrote: > > Thank you Fabien, do you know a way to do that? or where i could find a way > to decompile my .gambas file? As I understand it, the .gambas file is nothing more than a compressed version of the project the extracts itself at runtime. If this

Re: [Gambas-user] Please help me

2011-11-11 Thread Avenger
Fabien Bodard-4 wrote: > > 2011/11/11 Avenger : >> >> Hi, I made my gambas2 project but somebody stole my computer and backup >> it i >> only have the .gambas file, Is there any way to decompile that project >> and >> recover my source code? > Yes, but no :) > > there is no existing tools to do

[Gambas-user] Issue 148 in gambas: gb.desktop DesktopWindow.SkipTaskbar type mismatch

2011-11-11 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 148 by joshigg...@gmail.com: gb.desktop DesktopWindow.SkipTaskbar type mismatch http://code.google.com/p/gambas/issues/detail?id=148 1) Describe the problem. Using gb.de

[Gambas-user] Issue 147 in gambas: Cannot resize embedder

2011-11-11 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 147 by joshigg...@gmail.com: Cannot resize embedder http://code.google.com/p/gambas/issues/detail?id=147 Cannot resize embedder in Gambas 2.99.6 using gb.gtk or gb.qt 2) G

[Gambas-user] Getting Feedback from EXEC

2011-11-11 Thread JC S
Hello all. I want to use exec to run xterm and a bash script and I want to store the returned information a some form of string. something like: EXEC ["xterm, " - hold ", " - e ", " #! / Bin / bash; MYFCpid = $(ps ux | awk '/game-engine/ && !/awk/ {print $2}'); if [[ -n $MYFCpid ]]; then ps -p $MY

Re: [Gambas-user] Counting characters

2011-11-11 Thread Fabien Bodard
maybe with gb.pcre : regexp or Public Function CountChar(sValue as string, sChar as string) as integer dim i, iRet as integer for i =1 to len (sValue)+1 if mid(sValue,i,1)=sChar then inc iRet next return iRet end print CountChar("coucou ça va ?", "a") $ 2 Or a super version thet remember a

Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Rolf-Werner Eilert
Aaah ok, I got it. Thank you! :-) Am 11.11.2011 10:15, schrieb Ron: > In this project they are used to refer to byte positions in a byte[] array > I think it makes it just more clear what that positions is used for. > > So instead of using RecBuf[1] to refer to a position, you can use > RecBuf[SEC

Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Ron
In this project they are used to refer to byte positions in a byte[] array I think it makes it just more clear what that positions is used for. So instead of using RecBuf[1] to refer to a position, you can use RecBuf[SECURITY2.packettype] with the defined ENUM below. Regards, Ron_2nd. > I'm just

[Gambas-user] Counting characters

2011-11-11 Thread Rolf-Werner Eilert
Hi all, just a short question: Is there a function which simply counts how many times a character appears within a string? I vaguely remember a long time ago I used such a thing, but it may as well have been in another context. The only way I have found yet was using Split() and then count the

Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Rolf-Werner Eilert
I'm just curious: What are enums good for? Never heard of it... Rolf Am 11.11.2011 09:59, schrieb Ron: > Ok, thanks! > >> yes create a class SECURITY2 >> >> public enum packetlength = 0, packettype = 1, etc >> >> actually enum is not fully implemented in gambas :/ maybe for the 4.0 >> >> 2011/11

Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Ron
Ok, thanks! > yes create a class SECURITY2 > > public enum packetlength = 0, packettype = 1, etc > > actually enum is not fully implemented in gambas :/ maybe for the 4.0 > > 2011/11/11 Ron: >> I'm porting a vb project and it uses a lot of ENUM definitions, I cannot >> find a similar way to use t

Re: [Gambas-user] vb ENUMS

2011-11-11 Thread Fabien Bodard
yes create a class SECURITY2 public enum packetlength = 0, packettype = 1, etc actually enum is not fully implemented in gambas :/ maybe for the 4.0 2011/11/11 Ron : > I'm porting a vb project and it uses a lot of ENUM definitions, I cannot > find a similar way to use them in Gambas2/3. > > The

Re: [Gambas-user] something to do

2011-11-11 Thread Fabien Bodard
2011/11/11 richard terry : > On Friday 11 November 2011 09:00:45 Fabien Bodard wrote: >> 2011/11/10 richard terry : >> > On Friday 11 November 2011 07:38:59 Fabien Bodard wrote: >> >> Well gambas3 is a good thing for you Richard ... what an enormous >> >> project !!! ... >> >> >> >> ---

[Gambas-user] vb ENUMS

2011-11-11 Thread Ron
I'm porting a vb project and it uses a lot of ENUM definitions, I cannot find a similar way to use them in Gambas2/3. They get referred to with: SECURITY2.packettype ENUM SECURITY2 AS Integer packetlength = 0 packettype = 1 subtype = 2 seqnbr = 3 id1 = 4 id2 = 5