Re: [Gambas-user] external function freezes

2018-06-08 Thread Tobias Boege
On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: > Hello, i implemented a ptrace and waitpid external functions in order to > read/write a memory address of a process. > > i want to make a trainer for a game in gambas and i created a small program > that reads and writes to a memory process. > >

Re: [Gambas-user] Format function changes date value

2018-05-19 Thread Tobias Boege
On Sat, 19 May 2018, George wrote: > > CDate uses UTC and, without the time information in the string, it would > store midnight. Format uses local time. > > That is definitely part of the issue. My local time is GMT-04, and here's > what I get when specifying the time in my test: > > Test

Re: [Gambas-user] module/comp how to made like gambas normal

2017-10-15 Thread Tobias Boege
On Sun, 15 Oct 2017, PICCORO McKAY Lenz wrote: > i want to make a component that their rutines can be uses directly and not > "module.subrutine(arg)" i like th use as "rutine(arg)" > > hoq cab i made that? > AFAIK real routines have to be built into the compiler so you can't add them with just

Re: [Gambas-user] New git support in the IDE

2017-10-11 Thread Tobias Boege
On Wed, 11 Oct 2017, Benoît Minisini via Gambas-user wrote: > Hi, > > I have just committed git support in 'master'. > > The whole IDE version control management has been redesigned. Now version > control is managed through a sub-menu in the 'Project' menu, or an > equivalent menu button in the

Re: [Gambas-user] Marco?

2017-10-02 Thread Tobias Boege
On Mon, 02 Oct 2017, Moviga Technologies via Gambas-user wrote: > Marco? Polo! -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -- Check out the vibrant tech community on one of the world's most

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1161: Class Editor is Locked

2017-09-07 Thread Tobias Boege
On Thu, 07 Sep 2017, Fernando Cabral wrote: > 2017-09-07 5:52 GMT-03:00 Benoît Minisini via Gambas-user < > gambas-user@lists.sourceforge.net>: > > > > > Is it possible for you (or other people) to compare the list of your > > environment variables between a real system (where the bug occurs) and

Re: [Gambas-user] Fwd: [Gambas Bug Tracker] Bug #1161: Class Editor is Locked

2017-09-05 Thread Tobias Boege
On Tue, 05 Sep 2017, Fernando Cabral wrote: > 2017-09-05 12:49 GMT-03:00 Tony Morehen : > > > Some more questions / things to try: > > > > 1) Copy the project folder elsewhere in your home directory, but not in > > the dropbox tree. Try to edit. > > 2) In the copied

Re: [Gambas-user] OH NO - not this ? again...

2017-09-02 Thread Tobias Boege
On Sat, 02 Sep 2017, mikeB wrote: > *** > > Just to clarify a few questions that were presented in your MUCH APPRECIATED > answers: > > * when try to install the deb file on a virgin Mint 8.1 puter = the >

Re: [Gambas-user] CRYPT function - a little help please?

2017-08-25 Thread Tobias Boege
On Thu, 24 Aug 2017, mikeB wrote: > eGreetings, > I THINK I understand that the "Crypt" function is used to encrypt a password > that can be checked > by challenging user input (asking to input the password). Verifies plain > text against encrypted data - > It can NOT be decrypted. > > > ?1 =

Re: [Gambas-user] Switching to GitLab

2017-08-24 Thread Tobias Boege
On Thu, 24 Aug 2017, PICCORO McKAY Lenz wrote: > 2017-08-24 1:36 GMT-04:00 Christof Thalhofer : > > > Hello Piccoro, > > > > Am 24.08.2017 um 00:07 schrieb PICCORO McKAY Lenz: > > > yes, i reading now with calm.. all you have right in part... > > > > Thank you! I did not want

Re: [Gambas-user] Database help

2017-08-22 Thread Tobias Boege
On Wed, 23 Aug 2017, Jessa wrote: > Good day, how to create a simple database with picture in gambas? > Have you seen the example project called "PictureDatabase" on the software farm? -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk

Re: [Gambas-user] Different digit number in master version

2017-08-22 Thread Tobias Boege
On Tue, 22 Aug 2017, Gianluigi wrote: > Sorry Tobias, > but I don't have understod. > I refer to the f05e6bc master version code, which I get from gbx3 -V as > compared to what is in Commit f05e6bc[0] which has one number more, in this > case zero. > You mean that I not extracted the latest

Re: [Gambas-user] Different digit number in master version

2017-08-22 Thread Tobias Boege
On Tue, 22 Aug 2017, Gianluigi wrote: > If you have already been asked, I apologize but I haven't seen it: > Why on git the master version has a number more than my version? > 3.10.90 f05e6bc (master) => f05e6bc0 > Because it's newer. The x.y.90 version signifies the "rolling" unstable

Re: [Gambas-user] Git compilation report

2017-08-18 Thread Tobias Boege
On Fri, 18 Aug 2017, Gianluigi wrote: > Hi Tobias, > > This git response does not indicate that pull worked properly? > > remote: Counting objects: 12, done. > remote: Compressing objects: 100% (12/12), done. > remote:

Re: [Gambas-user] Git compilation report

2017-08-18 Thread Tobias Boege
On Fri, 18 Aug 2017, PICCORO McKAY Lenz wrote: > you should take in consideration that a pull fetch changes.. so i noted you > do a uninstall only after do the pull.. worng! > > if the uninstall process was changed beetween pulls, your "uninstall" could > faild and let garbage in your system.. >

Re: [Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread Tobias Boege
On Fri, 18 Aug 2017, Tony Morehen wrote: > Gambas can talk to the notifications daemon via Dbus. I use this code: > > Private NotifyInterface As String = "org.freedesktop.Notifications" > Private NotifyApp As String = "session://" & NotifyInterface > Private NotifyPath As String = "/" &

Re: [Gambas-user] Balloons, everywhere but when I don't want them.

2017-08-18 Thread Tobias Boege
On Fri, 18 Aug 2017, adamn...@gmail.com wrote: > Probably obscure, but I'll give it a go anyway... > > This project has about 80 or so Timers running at any given time, when they > fire some stuff is updated and then a balloon pops up to alert the user that > some update has happened. All

Re: [Gambas-user] Switching to GitLab

2017-08-17 Thread Tobias Boege
On Thu, 17 Aug 2017, Gianluigi wrote: > I had previously successfully updated using these drastic commands. > > cd gambasdevel > sudo make uninstall > cd > rm -rf gambasdevel/ > git clone https://gitlab.com/gambas/gambas.git gambasdevel > cd gambasdevel > ( ./reconf-all &&

Re: [Gambas-user] Switching to GitLab

2017-08-17 Thread Tobias Boege
On Thu, 17 Aug 2017, Christof Thalhofer wrote: > But as you now have the complete repository on your computer you can > easyly switch to another version, you can checkout tags and also branches: > > For actual stable you would do: > > git checkout v3.10.0 > > For an older one: > > git checkout

Re: [Gambas-user] Declaring 'Public pbSwitch As Object[16]' throws error 'Syntax error in FMain.class:3'

2017-08-15 Thread Tobias Boege
On Wed, 16 Aug 2017, Doug Hutcheson wrote: > Thanks for the explanation, Tobias. Having fixed the declaration, I am > able to run the code, but all I see is an empty form with no controls. > Sigh. I will keep hacking until I understand enough to make it work. > In case you don't want to figure

Re: [Gambas-user] Declaring 'Public pbSwitch As Object[16]' throws error 'Syntax error in FMain.class:3'

2017-08-15 Thread Tobias Boege
On Tue, 15 Aug 2017, Doug Hutcheson wrote: > I have just found Gambas and have the usual learning curve. Sigh. > > I have copied the code from http://gambaswiki.org/wiki/comp/gb/object/a > ttach into a new project and tried stepping through it. The first > statement is the declaration 'Public

Re: [Gambas-user] FProperty.class:25: error: Unknown identifier: &1 WebView

2017-08-15 Thread Tobias Boege
On Tue, 15 Aug 2017, Tobias Boege wrote: > I'm currently running > > $ gbx3 -V > 3.10.90 raa559edd9 (master) > Which was obviously due to a bug ("r" is not a hexadecimal digit) which I caught before pushing the commit. Correct should now be "3.10.90 48c951987 (

Re: [Gambas-user] FProperty.class:25: error: Unknown identifier: &1 WebView

2017-08-15 Thread Tobias Boege
On Tue, 15 Aug 2017, Karl Reinl wrote: > Am Dienstag, den 15.08.2017, 09:53 +0200 schrieb Moviga Technologies: > > Hmmm no, not in the 'app/src/gambas3/' directory. Should I? > > > > > Salut, > > > > > > do you get a revision when making 'gbx3 -V' like '3.10.90 r8171' > > on svn when

Re: [Gambas-user] How to stop a control raising events?

2017-08-13 Thread Tobias Boege
On Mon, 14 Aug 2017, adamn...@gmail.com wrote: > (A quicky!) > > Wasn't there a way to temporarily stop a control raising events, > MyControl.Lock or somesuch? My memory fails! > tia > bruce Object.Lock(x) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk

Re: [Gambas-user] A couple of ?s about encryption

2017-08-13 Thread Tobias Boege
On Sun, 13 Aug 2017, mikeB wrote: > eGreeetings, > I am starting a project that involves encryption of passwords and user names > - storing and recalling them. > > 1st ? = i noticed Gambas can save and recall files from a ".hidden" > directory. If the files are encrypted before > saving to a

Re: [Gambas-user] Two colors and two entries in a GridView

2017-08-04 Thread Tobias Boege
On Fri, 04 Aug 2017, Rolf-Werner Eilert wrote: > Anyway, I have made so many bad experiences with RichText in the GridView > that I thought about other ways of implementing this. > I don't know how your cells would be laid out but maybe you can get away with setting the RowSpan of the other

Re: [Gambas-user] Two colors and two entries in a GridView

2017-08-04 Thread Tobias Boege
On Fri, 04 Aug 2017, Rolf-Werner Eilert wrote: > In a GridView, it occurs that I need two different entries with two > different background colors in a few of the cells. So I thought about > different solutions for this. > You mean two different colors in the same cell and that's why you can't

Re: [Gambas-user] I need help to start drawing with Gambas

2017-07-30 Thread Tobias Boege
On Sun, 30 Jul 2017, Fernando Cabral wrote: > Perhaps some of you have a little time available to point me the direction > for this littledelineate project of mine. > > I like to play with sundials. Basically, it consists in calculating some > lines and angles and then drawing them on the ground,

Re: [Gambas-user] about lang/like string ? and depends

2017-07-30 Thread Tobias Boege
On Sun, 30 Jul 2017, PICCORO McKAY Lenz wrote: > http://gambaswiki.org/wiki/lang/like > > since witch version are available? its available for gambas 3.1? > Since forever and ever. I found the function in Gambas 1.9.44 which is the oldest tag in the svn history, over 10 years ago, and its

Re: [Gambas-user] gb.pcre regexp replace does not indicate since!

2017-07-28 Thread Tobias Boege
On Fri, 28 Jul 2017, PICCORO McKAY Lenz wrote: > http://gambaswiki.org/wiki/comp/gb.pcre/regexp/replace has a "since 3.9.X" > but does not indicate what! > > the hole "replace" or only a part functionality? > The note *below* the "Since 3.9.3" marker. The Replace() method exists since 3.5.0, as

Re: [Gambas-user] help with ListView code?

2017-07-28 Thread Tobias Boege
On Thu, 27 Jul 2017, mikeB wrote: > Greetings all, > I've got a Listview (set as Column view) with 2 columns that I'm using > > for testing so I might understand how all this works so can add it to a > project. > > testCode.. > With listview1 >

Re: [Gambas-user] ho to use code snipes

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > i see for constructor "_new" the "_n" but how to use it? > http://gambaswiki.org/wiki/ide/idesnippets : Entering a code shortcut at the beginning of a line and pressing the TAB key will automatically expand the shortcut into a defined piece

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > hello toby, when i set the gambas binary to backgroud to runs as daemon > ...and lauch other gambas process from that gambas ... > > then the stdout and stderr does not have that behaviour you said! > so then? > You're wrong, it does exactly what

Re: [Gambas-user] how to log to stdout/stderr

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, PICCORO McKAY Lenz wrote: > how can i log to stdout and stderr my program actions/methods/things ? > > note that due vendor/client i cannot use gambas 3.5+ only 3.4... due its > the already installed.. > > some time ago benoit respond me that recent version of gambas

Re: [Gambas-user] Best ways to format float values

2017-07-13 Thread Tobias Boege
On Thu, 13 Jul 2017, Gianluigi wrote: > I would not be misunderstood. > I had understood that Alex wanted a forced increase "Round". > > To recap: > > Dim n As Float = 26.66016 > Dim b As Byte > > Print Int(n * 100) / 100 ' Normal truncate, as already > mentioned by

Re: [Gambas-user] gambas for MAC OS ppc/intel ?

2017-07-10 Thread Tobias Boege
On Mon, 10 Jul 2017, PICCORO McKAY Lenz wrote: > any news/notes about MAC port of gambas? where download etc? if any! I'm not aware of any news but you may want to contact Francois Gallo who was able to run the Gambas IDE on OS X back in 2011 [1]. I'm sure you can dig up his email address in the

Re: [Gambas-user] RichText in Gambas

2017-07-10 Thread Tobias Boege
On Mon, 10 Jul 2017, Rolf-Werner Eilert wrote: > Is there an information about the RichText property? I mean, which HTML tags > are accepted etc.? > GridView is in gb.gui.base (written in Gambas) and you can see that it uses the Paint class to draw its cells. To draw RichText it uses

Re: [Gambas-user] Isn't bracket regular expression compatible with UTF8?

2017-07-05 Thread Tobias Boege
On Tue, 04 Jul 2017, Fernando Cabral wrote: > I have been trying something like *poder[^[:alpha:]* so I could find the > word "poder " ("poder" followed by an space) but not "poderão" ("ã" being > an alpha character in Portuguese.) > > In English it could be like finding "power" but not

Re: [Gambas-user] System.Language (gb)

2017-07-03 Thread Tobias Boege
On Tue, 04 Jul 2017, bb wrote: > On 04/07/17 07:13, Tobias Boege wrote: > > On Tue, 04 Jul 2017, bb wrote: > > > >Static Property Language As String > > > > > > > >Returns or sets the current language setting. > > > > > > >

Re: [Gambas-user] System.Language (gb)

2017-07-03 Thread Tobias Boege
On Tue, 04 Jul 2017, bb wrote: > Static Property Language As String > > Returns or sets the current language setting. > > But which one? LANG? LC_ALL? LANGUAGE? ... > According to source code it returns: 1. LC_ALL if that's non-empty, next 2. LANG if that's non-empty, or otherwise 3.

Re: [Gambas-user] who to detect if are running inside IDE

2017-07-03 Thread Tobias Boege
On Mon, 03 Jul 2017, Karl Reinl wrote: > Am Montag, den 03.07.2017, 20:40 +0200 schrieb Tobias Boege: > > On Mon, 03 Jul 2017, PICCORO McKAY Lenz wrote: > > > a piece of code to who to detect if are running inside IDE? any ideas how > > > to? > > > > >

Re: [Gambas-user] who to detect if are running inside IDE

2017-07-03 Thread Tobias Boege
On Mon, 03 Jul 2017, PICCORO McKAY Lenz wrote: > a piece of code to who to detect if are running inside IDE? any ideas how > to? > Exact same question here: https://sourceforge.net/p/gambas/mailman/message/34204796/ If I may add something to the things said in the above thread: you could try

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-02 Thread Tobias Boege
On Sun, 02 Jul 2017, PICCORO McKAY Lenz wrote: > 2017-07-02 14:09 GMT-04:00 Fernando Cabral : > > > Lentz, it is not a HTTPD project. It is not a web project. I need no > > webserver (and I don't want one). I just want to display some nicely > > formatted text. HTML

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-30 Thread Tobias Boege
On Fri, 30 Jun 2017, Gianluigi wrote: > What was wrong in my example which meant this? > > Public Sub Main() > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > "E", "E", "F"] > Dim s As String > > For Each s In ReturnArrays(sSort, 0) > Print s > Next > For

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-30 Thread Tobias Boege
On Fri, 30 Jun 2017, Fernando Cabral wrote: > 2017-06-30 7:44 GMT-03:00 Fabien Bodard : > > > The best way is the nando one ... at least for gambas. > > > > As you have not to matter about what is the index value or the order, > > the walk ahead option is the better. > > > >

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Tobias Boege
On Tue, 27 Jun 2017, Fernando Cabral wrote: > So, my question is basically if Gambas has some built in method do > eliminate duplicates. > The reason I am asking this is because I am new to Gambas, so I have found > myself coding > things that were not needed. For instance, I coded some functions

Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array

2017-06-27 Thread Tobias Boege
On Tue, 27 Jun 2017, Fernando Cabral wrote: > Hi > > I have a sorted array that may contain several repeated items scattered all > over. > > I have to do two different things at different times: > a) Eliminate the duplicates leaving a single specimen from each repeated > item; > b) Eliminate the

Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code?

2017-06-25 Thread Tobias Boege
PICCORO, read this mail at your own risk. I won't accept invoices for wasting your professional time. On Sun, 25 Jun 2017, PICCORO McKAY Lenz wrote: > due to many inconsistence responses i must spend time (again) to > investigating.. > > the problem of goto comes from C to object conversion

Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-23 Thread Tobias Boege
On Thu, 22 Jun 2017, alexchernoff wrote: > Anyone know if there is a wrapper to daemonize apps while keeping them in > regular console mode? That way maybe it will be possible to log fatal > interpreter errors? > Why do you want to daemonise then? From the manpage of daemon(): The daemon()

Re: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty

2017-06-21 Thread Tobias Boege
On Wed, 21 Jun 2017, Gianluigi wrote: > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the

Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-21 Thread Tobias Boege
On Wed, 21 Jun 2017, Tobias Boege wrote: > Attached are two scripts -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk #!/usr/bin/gbs3 Public Sub Main() Print "a" Application.Daemon = True Wait 0.1 ' ensure we daemon'd(?) Print "b&qu

Re: [Gambas-user] Logging errors in apps running as Application.Daemon

2017-06-21 Thread Tobias Boege
On Wed, 21 Jun 2017, adamn...@gmail.com wrote: > On Wed, 21 Jun 2017 02:17:27 -0700 (MST) > alexchernoff wrote: > > > Peace to all, > > > > I have some Gb projects that are in Application.Daemon mode. But sometimes > > if process dies for whatever reason, I can't see

Re: [Gambas-user] missing wiki gridview.rows.selection

2017-06-20 Thread Tobias Boege
On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: > NOW I HAVE ANOTHER QUUESTION, since what gambas version was implemented? in > 3.1 this are not!.. in 3.5 exist! so 3.4? 3.3? > I doubt anyone remembers this. You'll have to ask subversion. Regards, Tobi -- "There's an old saying: Don't change

Re: [Gambas-user] old question: detect gambas version in code

2017-06-20 Thread Tobias Boege
On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: > i want to make a piece of software work in both gambas olders (gambas3 << > 3.5) and gambas newers (gambas >> 3.5.1) > > by example, the smtp has some changes depending on the version, also the > gridview too.. > > example: > > SMTP was rewriten

Re: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation

2017-06-18 Thread Tobias Boege
On Sat, 17 Jun 2017, Fernando Cabral wrote: > Tobi > > One more thing about the way I wish it could work (I remember having done > this in C perhaps 30 years ago). The pseudo-code bellow is pretty > schematic, but I think it will clarify the issue. > > Let p and l be arrays of integers and s be

Re: [Gambas-user] Help needed from regexp gurus

2017-06-17 Thread Tobias Boege
On Sat, 17 Jun 2017, Fernando Cabral wrote: > Still beating my head against the wall due to my lack of knowledge about > the PCRE methods and properties... Because of this, I have progressed not > only very slowly but also -- I fell -- in a very inelegant way. So perhaps > you guys who are more

Re: [Gambas-user] DesktopWindow.Name; Unexpected result

2017-06-17 Thread Tobias Boege
On Sat, 17 Jun 2017, Gianluigi wrote: > 2017-06-17 13:51 GMT+02:00 adamn...@gmail.com : > > > > > Ah! Now I see where your confusion lies... > > 1) DesktopWindow.Name : "i.e. its title as specified by the application > > that owns this window." > > 2) DesktopWindow.VisibleName

Re: [Gambas-user] sqlite3 component can't seem to handle very large numbers

2017-06-16 Thread Tobias Boege
On Sat, 17 Jun 2017, Herman Borsje wrote: > When I retrieve a result from a sqlite3 database which holds very large > numbers in some fields, I get weird results. Up to 10 digits works okay, but > larger numbers are incorrect. Any ideas as to what's going wrong? > > I am using Gambas 3.9.2 on

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread Tobias Boege
On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id =

Re: [Gambas-user] static ? in variables

2017-06-16 Thread Tobias Boege
On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > tested was a cache doc problem maybe.. thanks ... > > i now understand clarelly about class using static and private.. but for > variables: > wiki was: > "If the static keyword is specified, the same variable will be shared with > every object of

Re: [Gambas-user] static ? in variables

2017-06-16 Thread Tobias Boege
On Fri, 16 Jun 2017, adamn...@gmail.com wrote: > On Fri, 16 Jun 2017 12:38:50 +0200 > Tobias Boege <tabo...@gmail.com> wrote: > > > Can you give a full project? The attached project contains everything > > you said about your class, and it works. It is instantiable

Re: [Gambas-user] static ? in variables

2017-06-16 Thread Tobias Boege
On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > tobias..now making a library in the ide, the class that not have the > "create static" now not permits instanciate the class > > i only put a variable static, rest of class not have create static > > Export > > Private dblocal As String =

Re: [Gambas-user] static ? in variables

2017-06-15 Thread Tobias Boege
On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > hi tobias, *the documentation are totally wrong.. due the documentation > makes a explicit citation to the concep in wikipedia*,that's why i ask so > many about it > > now i propose to change by myselft that documentation to a proper paragraph >

Re: [Gambas-user] Working with .so library

2017-06-15 Thread Tobias Boege
> > > > What I don't understand is how I construct the code in my > > > > particular case. > > > > > > > > To make an interface to the library I declare external pointer > > > > like this: > > > > > > > > Extern CreateFptrInterface(ver As Integer) As Pointer > > > > > > > > Then I declare

Re: [Gambas-user] static ? in variables

2017-06-15 Thread Tobias Boege
On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > thanks in advance, but i have now more questions: > 2017-06-15 8:41 GMT-04:00 Tobias Boege <tabo...@gmail.com>: > > > No, the word "singleton" here just means you get an automatic instance of > > your c

Re: [Gambas-user] static ? in variables

2017-06-15 Thread Tobias Boege
On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > "This keyword is used for declaring static variables, static methods and > singleton classes." > > About singleton clases, that mean guarantee a unique instance of.. > No, the word "singleton" here just means you get an automatic instance of your

Re: [Gambas-user] Working with .so library

2017-06-15 Thread Tobias Boege
> All your help was very important for me, I now have completed my cash > register software to the point where it does everything my company needs. I > must say Gambas is a great language, it's very easy to learn from scratch, > I'm surprised how obvious everything is. But there is a lot of work

Re: [Gambas-user] gambas 3 and mysql

2017-06-14 Thread Tobias Boege
On Wed, 14 Jun 2017, Unaise EK wrote: > hai, > i worte these code for storing data into mysql database, all data stored > into database except date_ad. > > > Public Sub Save_button_Click() > Dim InsertDb As String > 'Dim Dx As Date > 'Format(Dx, "dd/mm/") > InsertDb = "INSERT INTO name_tbl

Re: [Gambas-user] OT: Is this junk or really a sourforge mail?

2017-06-12 Thread Tobias Boege
On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote: > This morning, I got a mail asking for confirmation of my mailing list > accounts with sourceforge. > > They have never ever done this before, so I am somewhat sceptical if this > might be just a junk mail and I will start receiving tons of spams

Re: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update?

2017-06-11 Thread Tobias Boege
On Sun, 11 Jun 2017, Fernando Cabral wrote: > Tobi > > Excuse both my ignorance and poor communication ability. I prefer using the > latest stable version, which I expect be the case when I resort to the PPA > I am presently using. Now, I was not aware that those revisions are still > considered

Re: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update?

2017-06-11 Thread Tobias Boege
On Sun, 11 Jun 2017, Fernando Cabral wrote: > I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas using > a PPA. Is there a way I can use to force apt-get to download and install > the last stable version? I've tried removing, purging and installing anew, > but it seems I ended

Re: [Gambas-user] Regex - expert opinion requested

2017-05-31 Thread Tobias Boege
On Wed, 31 May 2017, Fernando Cabral wrote: > This is only for those who like to work with regular expressions. > It is a performance issue. I am using 26 different regular expressions of > this kind: > > txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8) > txt =

Re: [Gambas-user] Form listener

2017-05-29 Thread Tobias Boege
On Mon, 29 May 2017, Leon Davis wrote: > Using Gambas v3.9.2 and GTK+3 > > I have added a form to another form: > > Dim NForm as Form > NForm = new MyForm(ME) as "MyForm" > > The problem I'm having is none of the Key events, i.e. (keypress, keyup, > keydown) for either form do anything. Also

Re: [Gambas-user] Reg expression still beating me up

2017-05-28 Thread Tobias Boege
On Sun, 28 May 2017, Fernando Cabral wrote: > In the piece of code bellow, RegExp.Replace will never return. > > Sentencas[i] = "Test string." > Print "Before replacing" > Sentencas[i] = RegExp.Replace(Sentencas[i], "[.:!?;]*[ ]*?\n*?", "", > RegExp.UTF8) > Print "After replacing" > > It beats

Re: [Gambas-user] rdir returns unwanted directories

2017-05-28 Thread Tobias Boege
On Sun, 28 May 2017, Gianluigi wrote: > Hi Tobias, > if I have in my home a directory named image with a subfolder named > my-image, containing both images, and I write: > > Public Sub Main() > > Dim sFileArray As String[] > Dim s As String > Dim sPath As String = "~/image" > ' Run

Re: [Gambas-user] rdir returns unwanted directories

2017-05-28 Thread Tobias Boege
On Sun, 28 May 2017, Charlie wrote: > I presume you just want the file name not the folder details. If so try this, > sFiles will contain just the file name: - > *Public Sub Form_Open() > Dim sFileArray As New String[] > Dim sFiles As New String[] > Dim sTemp As String > sFileArray =

Re: [Gambas-user] gb.debug: Unable to open fifo

2017-05-23 Thread Tobias Boege
On Tue, 23 May 2017, T Lee Davidson wrote: > Hello folks, > > I am trying to see if gb.debug will help me diagnose why HttpClient does not > properly expose redirect response codes on my > system (and reportedly Tobi's system) while it does so correctly on Benoît's > system. > > However, the

Re: [Gambas-user] What is the maximum text we can put on a TextArea?

2017-05-23 Thread Tobias Boege
On Tue, 23 May 2017, Fernando Cabral wrote: > How much text can we display on TextArea? > Even after performing serval tests I couldn' t find out. > It seems sometimes I can display 7000 characters, > sometimes twice as much. > > Perhaps someone can point me the proper documentation. >

Re: [Gambas-user] Split: misleading Wiki

2017-05-22 Thread Tobias Boege
On Mon, 22 May 2017, Matti wrote: > If I have a string sStr="hello##12345" and want to split it: > > Dim aSplit as String[] > aSplit = Split(sStr, "##") > Print aSplit[0], aSplit[1] > > Returns always only "hello". Maybe "12345" is excluded because being an > integer? > It is not an integer

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread Tobias Boege
On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > umm usefully, but the source its odbc.. was my faul... > > in any case, there's posible to cpy between results object of differents > connections? that the right quiestion! > Ok, after I formulated my answer, I can see how you may want to use

Re: [Gambas-user] can a result database object be copy to other database (of different type)

2017-05-22 Thread Tobias Boege
On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > i mean, due the now well knowed problem of odbc, > > i have two databases, db1 can be mysql, odbc, etc, and the other target db > must be sqlite.. > > can be possible to port from the db1 to the memory table in sqlite3 db2 ? > or at leas ina

Re: [Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, Tobias Boege wrote: > Hi Benoit (or gb.web experts), > > I have two questions about argument passing with WebPages (gb.web), > when I include one webpage into another with the <> syntax. > > (1) The first situation is that I have a small widget enc

Re: [Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, Tobias Boege wrote: > (2) The other question is about receiving arguments. If I'm a child page > and the parent included me by setting the "text" argument (like in (1)), > then I can print the "text" value via the special syntax > >

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, PICCORO McKAY Lenz wrote: > 2017-05-18 9:13 GMT-04:00 Tobias Boege <tabo...@gmail.com>: > > > You can also specify parameters to the _new() method like > > > > ' In MyClass.class: > > Public Sub _new(X As Integer) > >

[Gambas-user] Passing arguments between WebPages

2017-05-18 Thread Tobias Boege
Hi Benoit (or gb.web experts), I have two questions about argument passing with WebPages (gb.web), when I include one webpage into another with the <> syntax. (1) The first situation is that I have a small widget encapsulated in a WebPage, let's say it is a specially formatted button

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > is there a way to have a routine execute in a class as soon as a new > instance of it is created? I have a Public Sub Main() but it doesn't seem to > run. > > I come to Gambas from Xojo and there classes have a Constructor() sub which

Re: [Gambas-user] 16 bit value in hex with MSB and LSB?

2017-05-18 Thread Tobias Boege
On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > In a serial string I receive a 16 bit value split into MSB and LSB in hex, > for example 15000 (3A 98) is sent as 2 bytes containing decimal values of > 3A and 98. > > To convert that to decimal, I have to convert each to hex strings,

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread Tobias Boege
On Thu, 18 May 2017, Cristiano Guadagnino wrote: > If your complaint is due to the fact that the only native implementation > for Gambas is the Mysql one, you have to understand that Mysql (usually in > the form of MariaDB) is available on all linux distributions and it is > free. > One other free

Re: [Gambas-user] result from select can be movefirts from ODBC?

2017-05-17 Thread Tobias Boege
On Wed, 17 May 2017, PICCORO McKAY Lenz wrote: > i try to filla gridview at demand, so due ODBC limitations i cannot count > so inside my bean-like object i count and tehen return properties.. > > the problem goes when i try to move to the fitrs record, i implement the > code in wrong way? : > >

Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Tobias Boege
On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: > umm so then as you said, the rs number 3 does not load until i get down > the gridview to the row 3! ? > Yes, why don't you try it yourself? > if this the case, how can i implement a search input that retrieve data > when i put strings!?

Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Tobias Boege
On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: > In gambas wiki documentation said: > > You can fill the grid explicitly, or implement the Data > event to display > the grid contents on demand. > > You should use the last method if you have

Re: [Gambas-user] Serial I/O with byte data

2017-05-14 Thread Tobias Boege
On Sun, 14 May 2017, alexchernoff wrote: > Good day all, > > Anyone know how to read data received on serial port into an array of bytes > instead of string? > I think that's not possible. > String gets unreadable binary characters, so how can I > put them into byte[] or so? > This

Re: [Gambas-user] Keyboard locked -- insisting one more time

2017-05-13 Thread Tobias Boege
On Sat, 13 May 2017, Fernando Cabral wrote: > Using IDE I can't edit my source code. It seems locked up. To no avail, I > have followed every hint I' ve received from you guys. I've done more. I > have uninstalled the whole gambas package. I have even searched every file > using find and locate so

Re: [Gambas-user] String[].Find finds nothing

2017-05-10 Thread Tobias Boege
On Wed, 10 May 2017, Matti wrote: > Yes. But as I don't know [iIndex], I have to iterate through the (huge) array > with 'For...Next'. > I hoped to make it faster with 'Find'. You can make the code smaller by using the optional Mode parameter to String[].Find() (cf. the docs [1]). The following

Re: [Gambas-user] Gambas binary to ELF?

2017-05-05 Thread Tobias Boege
On Fri, 05 May 2017, alexchernoff wrote: > Well thanks Tobias, that's a great idea. > > The "AXprotector" ELF protector encrypts the executable so it should be > safe. > > Any suggestions how to build such a self-extractor ELF? > > thanks! > Try the attached archive. It contains 3 things:

Re: [Gambas-user] Close If Clicked Outside Form

2017-05-04 Thread Tobias Boege
On Thu, 04 May 2017, herberth guzman wrote: > Hi > > Close If Clicked Outside Form > > Is there any way to close a form if it is clicked outside the main form? > > For example, just as applets on the network or audio volume or KDE menu. > Try the Deactivate event. The documentation doesn't

Re: [Gambas-user] Math Operation

2017-05-04 Thread Tobias Boege
On Thu, 04 May 2017, cheikh diabang wrote: > hello. i have write this code below on gambas 3.9.2 and when i run that, he > indique syntaxe error > > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As > Float > 'Dim ak As Float > Dim a As Float > Dim b As

Re: [Gambas-user] Gambas binary to ELF?

2017-05-04 Thread Tobias Boege
On Thu, 04 May 2017, alexchernoff wrote: > Good day all, > > anyone know of a way to make an ELF format file from Gambas executable? > > I try a "software protection" system (WIBU KEY), to protect a Gambas project > from unwanted copying, but it can only protect ELF binaries and doesn't >

Re: [Gambas-user] Help wanted for aspell installation

2017-05-01 Thread Tobias Boege
On Sun, 30 Apr 2017, Fernando Cabral wrote: > Hello > > After downloading gb.aspell I tried to install the package running ./reconf > as indicated. Nevertheless, it has not worked. Any help much appreciates. > Error messages follow. > > hostname ~/Downloads/gambas3-3.9.2/gb.aspell $ ./reconf >

Re: [Gambas-user] RegExp.Replace() question

2017-04-29 Thread Tobias Boege
On Sat, 29 Apr 2017, Fernando Cabral wrote: > Benoît > > I am prety new to Gambas, but quite an old hand with regular expression > (almost from the time when sed, awk and vi were created. All of them allow > heavy use of regular expression). It took me many hours to understand that, > contrary to

  1   2   3   4   5   6   7   8   9   10   >