Re: [Gambas-user] gb3: unable to compile on Debian Wheezy (testing)

2011-10-05 Thread doriano . blengino
Bruce Bruen ha scritto: > On Wed, 2011-10-05 at 01:19 -0400, Kevin Fishburne wrote: >> Hopefully the Debian or Mint team will get this mess sorted out so gb3 >> can compile without hacks. Thanks for the help anyway, and for anyone >> else who sees GNOME as the walking dead, I highly recommend Kub

Re: [Gambas-user] more trigonometry fun (not)

2011-05-24 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 05/24/2011 12:57 AM, Bruce Bruen wrote: > > I need to know the (x, y) offset of a point at a given orientation and > velocity. For example if a point is moving at an angle of 45 degrees (or > radians, take your pick), what would its x and y coordinate

Re: [Gambas-user] using a "file system database"

2011-04-20 Thread Doriano Blengino
Kevin Fishburne ha scritto: >>> My current plan is to create a directory for each region >>> ([65536/32/32]^2). Each region directory contains 32^2 data files >>> (1024). Hopefully this won't stress any particular file system as far as >>> how many directories and files are contained within a singl

Re: [Gambas-user] using a "file system database"

2011-04-18 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 04/15/2011 03:56 AM, Doriano Blengino wrote: > >> Kevin Fishburne ha scritto: >> >>> I'm in the early phases of creating a "database" that uses the file >>> system for data organization rather tha

Re: [Gambas-user] using a "file system database"

2011-04-15 Thread Doriano Blengino
Kevin Fishburne ha scritto: > I'm in the early phases of creating a "database" that uses the file > system for data organization rather than a traditional software database > such as MySQL, etc. I'm hoping that this could be faster since my > requirements are very specific and (I think) don't ne

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-08 Thread Doriano Blengino
Il 08/04/2011 09:04, Kevin Fishburne ha scritto: > On 04/08/2011 02:32 AM, Doriano Blengino wrote: > >> >> Endiannes refers to the order the bytes are kept in memory, when a >> numerical multi-byte value is involved. Strictly speaking, strings are >> not affected.

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-07 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 04/07/2011 12:20 PM, Benoît Minisini wrote: > >> When you write the data to the socket, all data are converted from the CPU >> endianness (little endian for Intel/AMD) to the network endianness (big >> endian >> by definition). >> >> When you read the data from

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Doriano Blengino
nes, if data type is word, integer, long or float. In order to produce a single packet from several fields, they could be specified on a single WRITE, or a semicolon could be used as separator like in the PRINT instr

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Doriano Blengino
round, in Gambas, would be useful for a lot of things. In fact C, a mature and robust language, has powerful structures, but it has also memcpy(); I could cite other languages too. It would solve completely the "Kevin Problem". To conclude, I am not able to find a solution, but may b

Re: [Gambas-user] How to find out internet status

2011-04-03 Thread Doriano Blengino
obably more phylosophical than scientific! I hope it can help. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." -- Create and publish websites

Re: [Gambas-user] Gambas and the andlinux project

2011-04-01 Thread Doriano Blengino
admhards...@yahoo.ca ha scritto: > Hi somebody in this list have experience working with andlinux proyect for > windows? If yes somebody can tell me where andlinux store the programs that > you install in your pc? In special a DB in mysql, somebody can help me? > Thanks > Sincerely > Tomas > A

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-01 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 04/01/2011 01:15 AM, Bruce Bruen wrote: > >> On Friday, April 01, 2011 01:17:50 PM Kevin Fishburne wrote: >> >>> I'm finding that the task of replacing the Mk$ functions with structures >>> for UDP packet client/server transactions is a massive undertaking.

Re: [Gambas-user] the math behind full screen rotation

2011-03-29 Thread Doriano Blengino
Kevin Fishburne ha scritto: > > In a half-drunken stupor I managed to correct the issue by trial and > error. Hell of a miracle. Here's the abbreviated working code: > I think it is more dangerous to not understand why some code works, instead of don't understanding why some code does not work

Re: [Gambas-user] the math behind full screen rotation

2011-03-26 Thread Doriano Blengino
nates fast movements with slow ones. I am also confused by our previous thread, where you rotated the player instead of the world. Not knowing enough, I can only say that you can, perhaps, gain some speed by doing calculations in the dead times (delays, if you have/use them). I have read that you

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Doriano Blengino
Kevin Fishburne ha scritto: >Just to be clear on what -should- be happening, here's an example. >Player is facing up (0 degrees): left stick pushed up moves up, pushed down >moves down, pushed left moves left, pushed right moves right. >Player is facing right (90 degrees): left stic

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Doriano Blengino
Kevin Fishburne ha scritto: > On 03/14/2011 04:46 AM, Doriano Blengino wrote: > >> I think that you have too many variables involved... to define a speed >> in a plane you need only two coordinates - you should choose between two >> methods (or coordinate systems). &g

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Doriano Blengino
Kevin Fishburne ha scritto: > I'm disturbed that I couldn't find an answer via Google that wasn't too > complex for my feeble mind to understand (my fault; I suck at math), so > I'm asking here. > > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have

Re: [Gambas-user] Ideas?

2011-02-10 Thread Doriano Blengino
Jussi Lahtinen ha scritto: > Hi! > Any ideas how to implement following? > > I need to make open forms to refresh when they get signal from main module. > User need to be freely open or close forms as like. So I don't know are they > valid objects or not. > > So, form should have some kind of event

Re: [Gambas-user] A few questions

2011-01-31 Thread Doriano Blengino
John Spikowski ha scritto: > BTW: I fixed my running as root when I shouldn't have problem. The > following commands will recursively change your owner and group > permissions for files and directories. > > *** FILES *** > find . -type f -exec chown -R me {} \; > find . -type f -exec chgrp -R me {}

Re: [Gambas-user] Crash with Free()

2011-01-13 Thread Doriano Blengino
Ian Haywood ha scritto: > On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis > wrote: > >> :) Pointers are tricky! >> > Aaaa... of course, pointer is not correct to free after "pp += 4". > Though, result shouldn't be signal 11. > It could not be different. > yes, the ability to avoid

Re: [Gambas-user] Using a timer and Last

2011-01-01 Thread Doriano Blengino
which raised the event. Stop. For added safety, if and when you use WAIT in a handler, you could save LAST in a local variable, and restore it after the WAIT; but I really think it is not necessary. Regards and cheers, -- Doriano Blengino "

Re: [Gambas-user] Gambas 3 advancement

2010-12-21 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> Pipes should not return EOF when the pipe is not closed. But they should return EOF when the other side closes. >>> Why ? >>> >> Because this is the way *all* unix routines work, and the only logica

Re: [Gambas-user] Gambas 3 advancement

2010-12-20 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Pipes should not return EOF when the pipe is not closed. But they should >> return EOF when the other side closes. >> >> > Why ? > Because this is the way *all* unix routines work, and the only logical one. > EOF() actually means "there is nothing to read an

Re: [Gambas-user] Gambas 3 advancement

2010-12-19 Thread Doriano Blengino
thing, even during creation and destruction. An OnIdle event would be handy, raised every time there are no other events pending. The preprocessor could implement "#define" and use the definitions to do simple token substitution (and, of course, make test on them). Otherwise, you end i

Re: [Gambas-user] CDE. An interesting packaging tool

2010-11-14 Thread Doriano Blengino
s - they are operating system ones. Trying to solve this issue in an improper manner can (and probably will) lead to add problems to problems. From a pure, theoretical point of view, this idea is really wrong, as it intereferes heavily with a beatiful concept. That said, anyone is free to interef

Re: [Gambas-user] Project - Make ...

2010-11-14 Thread Doriano Blengino
ry do. If one wanted to manually copy "the sources", he should try to analyze the single files (some of them are hidden) to decide what to include in the archive and what to exclude. The "Make source archive" function takes care of this: who, if not gambas itself, knows better wh

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Doriano Blengino
Fabien Bodard ha scritto: > 2010/11/9 Gregor Burck : > >> Hi, >> >> when I want to print the units for draw were dots, for the gui I want to use >> milimeter. >> So I create a function >> >> public function mmToDots(mm as integer, resolution as integer) as integer >> return Round(mm / 25.4 * r

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Doriano Blengino
user ha scritto: > i am not the person that should answer but i will as i understood well > as possible the concept of Gambas .. > > i think Gambas concept is to keep a Basic style language as possible > can. So an % operator is a foreign word for a Basic language. > > >From the other hand it would

Re: [Gambas-user] Numeric operation between strings.

2010-11-08 Thread Doriano Blengino
user ha scritto: > ok i see this but > > CStr(-19776) output is it a string? > > for example i think there is difference between > > DIM sVar1="-19776" AS String > DIM iVar2=-19776 AS Integer > > why Gambas re-convert a string to integer again when see a + operator? > Because gambas has automat

Re: [Gambas-user] Variable overflow questions

2010-11-03 Thread Doriano Blengino
user ha scritto: > Hi i check the overflow of variables and there is something i dont > understand. > > My system is > > u...@ubuntu-desktop:~$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=10.04 > DISTRIB_CODENAME=lucid > DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS" > > Linux ubuntu-desktop

Re: [Gambas-user] gb3.settings

2010-09-26 Thread Doriano Blengino
> > ------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > __

Re: [Gambas-user] Spacing property.

2010-09-19 Thread Doriano Blengino
u think everyone here is a young penguin? Anyway, I think perhaps there is a french list for gambas. If not, or if this list is bigger, try to use this one. Nobody will get angry if you don't write a good english - simply try to get understood. Regards, -- Doriano Blengino "Liste

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-17 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > I understand encapsulation in reference to OOP in this way: > > Encapsulation mean hide state "and" behavior. That implies existence > of an interface and an implementation separates. But not in reference > to procedures or functions, but to classes. I don't see

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-17 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/9/16 Doriano Blengino: > >> Ok, I will argue about it. From what I understand, the paradigm you >> describe looks similar to pascal (and C++): an interface section >> declares all the public symbols, which will be detailed (i

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-16 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/9/16 Doriano Blengino : > >> Ok, I will argue about it. From what I understand, the paradigm you >> describe looks similar to pascal (and C++): an interface section >> declares all the public symbols, which will be detailed (i

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-15 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > >> Your proposal resembles the syntax of pascal - I like pascal, and use it >> a lot; but the biggest annoyance of pascal is this double declaration in >> interface and implementation: very clean and very logical - for a >> compiler from 1970. >> > > Oh! Lisp

Re: [Gambas-user] Suggestions 4 new keywords

2010-09-15 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > Hi Benoît. Below I expose some suggestions for new and alternative keywords. > > PUBLIC and PRIVATE keywords defines the scope for attributes and > methods, but this words come from (or evokes) modular/structured > programming. Because PUBLIC methods and attribute

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> 2010/9/3 Benoît Minisini : > Controls are always clipped by their container, because they are > windows inside windows, and this is how X-Window works. > > *But* (there is always a *but*), now QT4

Re: [Gambas-user] Can you put a big box into a small one?

2010-09-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> 2010/9/3 Benoît Minisini : >> >>> Controls are always clipped by their container, because they are windows >>> inside windows, and this is how X-Window works. >>> >>> *But* (there is always a *but*), now QT4 and GTK+ do not create one >>> window for each control.

Re: [Gambas-user] TextWidth

2010-09-02 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > When I try to adjust the width of a TextBox to its content, I use > txtSomeThing.Width = txtSomeThing.TextWidth(txtSomeThing.Text). But > doing that, the width of TextBox never be enought to show its content > completely. > > I tried to find a correction factor bu

Re: [Gambas-user] Inconsistent initialization in controls: seems a little bug

2010-09-02 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/9/2 Doriano Blengino : > >> I agree - consistency; but the center question is the AutoResize >> property. If it is true by default, then the widget should show as soon >> as its text property is set to something "visible&

Re: [Gambas-user] How to realize AND, OR etc.

2010-09-02 Thread Doriano Blengino
Rolf-Werner Eilert ha scritto: > Am 02.09.2010 11:36, schrieb Doriano Blengino: > >> Rolf-Werner Eilert ha scritto: >> >>> This is just a general question about programming, it doesn't refer to >>> Gambas specifically, but I would implement the

Re: [Gambas-user] How to realize AND, OR etc.

2010-09-02 Thread Doriano Blengino
Rolf-Werner Eilert ha scritto: > This is just a general question about programming, it doesn't refer to > Gambas specifically, but I would implement the results in Gambas. > > For some of my bigger projects I have had to implement IF and ELSE and > similar functions. I tried to manage AND, OR etc

Re: [Gambas-user] Inconsistent initialization in controls: seems a little bug

2010-09-02 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/9/1 Benoît Minisini : > >> I'm inclined to prefer the gb.gtk behaviour than the gb.qt one, aren't you? >> > > Uhm... when a label is drawed on a form by double clicking on its icon > in the toolbox, the label appears on X=0 Y=0, its Text property is s

Re: [Gambas-user] Extern howto/tutorial

2010-08-28 Thread Doriano Blengino
totally true - I did'nt verified. What is true, instead, is that declaring a constant as byte, and then writing it out to a stream, 4 bytes are written. This was verified in an old temptative of the drum machine, where OSS was used instead of alsa, and a gambas stream (file) was used to

Re: [Gambas-user] Extern howto/tutorial

2010-08-26 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> Hi, I finally wrote the tutorial about using external declarations. >>> This is not HTML, but plain text. If you can make an HTML version of your >>> document, with formatted text, I will be able to add

Re: [Gambas-user] Extern howto/tutorial

2010-08-24 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Hi, >> >> I finally wrote the tutorial about using external declarations. >> > This is not HTML, but plain text. If you can make an HTML version of your > document, with formatted text, I will be able to add it to the wiki. > Mmm... this is an excerpt from th

Re: [Gambas-user] Post data and files

2010-07-29 Thread Doriano Blengino
jose ha scritto: > hello everybody! > > Can you help?, how can I send datas and files to php from > Gambas2 app? > Dear Jose, you should be more specific... do you mean send data to a remote server running a php page? Consult the help: there are the components gb.net for low level; gb.net.c

Re: [Gambas-user] post data and file http form

2010-07-29 Thread Doriano Blengino
Szenográdi Norbert ha scritto: > Dear All, > > Can you help me, how can I send datas and files to html form from > Gambas2 app? > Dear Sevoir, you should be more specific... anyway, consult the help: there are the components gb.net for low level; gb.net.curl for high level, and gb.web. I don'

Re: [Gambas-user] BUG Install on mandriva

2010-07-26 Thread Doriano Blengino
Doriano Blengino ha scritto: > > This leads to my last question: how can I download a local copy of the > wiki? I tried two or three times with wget, but the result is unuseable. > Forget it - I finally got what I need. May be that in the help, about pointers (url: /help/lang/

Re: [Gambas-user] BUG Install on mandriva

2010-07-26 Thread Doriano Blengino
Benoît Minisini ha scritto: >>> VarPtr() must be used when a C-function argument is actually a pointer to >>> a variable that will be modified by the called function. >>> >> I disagree for two or three reasons. First, an external declaration >> already implies that the declaration refers to

Re: [Gambas-user] BUG Install on mandriva

2010-07-25 Thread Doriano Blengino
Benoît Minisini ha scritto: > > > You just have to use the MEMORY instruction to get a memory stream, and > replace the #pointer by #memoryStream. > As you already stated, it is necessary to get informed. I will fetch the wiki for that. > > It seems that "byref" is ignored in external

Re: [Gambas-user] BUG Install on mandriva

2010-07-25 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> >> >> Me and others got caught in the same pit - building of gambas3.gambas >> succeeds even if some required component is missing. While it is true >> that examining logs or paying attention to the compilation process this >> pit c

Re: [Gambas-user] BUG Install on mandriva

2010-07-25 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Now, the single file that should be a link it's easy to correct. But, a >> line saying "link ../component.am" in the middle of a makefile is >> different: the makefile is generated by ./configure; where are the >> instructions that make configure think to do such a th

Re: [Gambas-user] BUG Install on mandriva

2010-07-24 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Sorry, but the sources haven't got gb.qt4 but only gb.qt >> >> > > Florent talks about compiling Gambas 2 from the *.tar.bz2 sources, whereas > Doriano talks about compiling Gambas 3 from the subversion repository! > Yes - sorry. I was so deep inside my pr

Re: [Gambas-user] BUG Install on mandriva

2010-07-24 Thread Doriano Blengino
MailingLists ha scritto: > Thank you for answering. > > I executed the following command in order to have the symbolici link: > ln -s gb.qt/share/ gb.gtk/share. > No more success but I have an idea. Ehm... shouldn't it be "ln -s gb.qt4/share/ gb.gtk/share"? Note in "qt4" then "4" after qt... Pr

Re: [Gambas-user] BUG Install on mandriva

2010-07-24 Thread Doriano Blengino
Benoît Minisini ha scritto: >> here in attached file the different step of my compilation executed as >> root on the main folder : >> 1 # ./reconf-all > 1-recon-all_as_root.txt 2>&1 see in attached file >> 2 # ./configure > 2-configure_as_root.txt 2>&1 see in attached file >> 3 # make > 3-make_as_r

Re: [Gambas-user] "gbr3: no project filein '/usr/local/bin/gambas3.gambas' "

2010-07-18 Thread Doriano Blengino
Benoît Minisini ha scritto: webkit is used by the gb.qt4.webkit component which is used by the Gambas IDE. If you don't install it, gbx3 doesn't caret, but you won't be able to compile the IDE. Anyway, you must provide the full output of the './configure -C', 'make', and 'make install' proces

Re: [Gambas-user] "gbr3: no project filein '/usr/local/bin/gambas3.gambas'"

2010-07-18 Thread Doriano Blengino
girardhe...@hotmail.com ha scritto: > true it worked for me too ... > should be on gambas web site for some time : Till users get over it ! > > >> The boss said we need qt4 webkit +devel. It worked for Matti. >> >> Werner Thanks for the information. But qt4-webkit is installed, and I don't see

[Gambas-user] "gbr3: no project file in '/usr/local/bin/gambas3.gambas'"

2010-07-17 Thread Doriano Blengino
Hi, went to gambas.svn.sourceforge.net, hit the "Download GNU tarball", this time it worked, put all on the usb stick and copied it to the home machine. Updated libtool and autoconf/automake, and managed to compile. A few file contained a single line "link ../blahblahblah" which gave errors. I

Re: [Gambas-user] Callbacks in Gambas (was Re: Signal management)

2010-07-14 Thread Doriano Blengino
Charlie Reinl ha scritto: > Am Mittwoch, den 14.07.2010, 20:29 +0200 schrieb Benoît Minisini: > >>> Benoît Minisini ha scritto: >>> >>> The problem right now is different... this download does not want to >>> finish (277 Mib so far) and I want to go home! :-) >>> >>> >> That size is not n

Re: [Gambas-user] Callbacks in Gambas (was Re: Signal management)

2010-07-14 Thread Doriano Blengino
Benoît Minisini ha scritto: >> >> Just now I am reading that for gambas3 it is no more required to >> downgrade libtool. > No, libtool 2.x is mandatory now, to compile both version of Gambas. Your GTK+ > version should be enough, but I'm not sure (GTK+ is a moving unfinished > target!) > Yes -

Re: [Gambas-user] Callbacks in Gambas (was Re: Signal management)

2010-07-14 Thread Doriano Blengino
Charlie Reinl ha scritto: > Salut, > > for svn, you can also go to "gambas homepage", click on "Browse Source > code" > or direct to http://gambas.svn.sourceforge.net/viewvc/gambas/?view=tar > and there go to trunk and use "Download GNU tarball" > > Thank you - downloading now. Hope this is the

Re: [Gambas-user] Callbacks in Gambas (was Re: Signal management)

2010-07-14 Thread Doriano Blengino
Benoît Minisini ha scritto: Nice thing. But now I have a further question: is it possible to implement generic callbacks in Gambas? I mean - many libraries have functions where you specify a callback to be called, like the glib function g_signal_connect(); it would be nice

Re: [Gambas-user] Signal management

2010-07-13 Thread Doriano Blengino
Benoît Minisini ha scritto: > Hi, > > I don't remember who needed signal management in Gambas. > > But it's there now in Gambas 3 since revision #3037, through a new component > named "gb.signal" and a static class named "Signal". > > Signal.Ignore() to ignore a signal. > Signal.Catch() to catch a

Re: [Gambas-user] gambas3 search/replace global - really inconvenient

2010-06-30 Thread Doriano Blengino
Jussi Lahtinen ha scritto: >> Yes, but how can I detect a "binary" file? >> > > I'm not sure what would be easy way to do it. > > Gedit gives following error message from binary files: > "gedit has not been able to detect the character encoding. > Please check that you are not trying to op

Re: [Gambas-user] Gambas2+andlinux in windows

2010-06-10 Thread Doriano Blengino
admhards...@yahoo.ca ha scritto: > Hi > I installed gambas2 in windows trought andlinux, but I wanna to conect my > database remote to my web server, but I need to change ip address to > andlinux, somebody have or had this experience before? My pc have access to > internet because have a ip in t

Re: [Gambas-user] Gambas for windows, how?

2010-05-27 Thread Doriano Blengino
Tomas Rodriguez ha scritto: > I like that solution, actually I installed already the andlinux, and > xming(andlinux installation ask me if I wanna install too), but what should > I do now? after the installation, how can I install gambas and how can I > have access to gambas since windows. >

Re: [Gambas-user] Gambas & API of ALSA

2010-05-25 Thread Doriano Blengino
Ru Vuott ha scritto: > Thank you very much. > > Now the problem is how I can use those information with Gambas !!! :-( > I would interested too in writing a midi librarian for my keyboard, but leaved this idea behind because I am too busy these days. I wrote a working one under windows, but no

Re: [Gambas-user] Gambas for windows, how?

2010-05-13 Thread Doriano Blengino
Dimitris Anogiatis ha scritto: > Tomas, > What you could do in this case, is setup a machine with Debian or Ubuntu on > the customer's premises, (It doesn't have to be a top notch machine) and > setup x2go and he can use the application from Windows by logging in to the > debian machine using SSH a

Re: [Gambas-user] Pipe doesn't receive contents

2010-05-08 Thread Doriano Blengino
Benoît Minisini ha scritto: > > Well, in a few words, don't mix the behaviour of Gambas, the C library and > the > Linux kernel! > So you are true. If someone says that tail(1) does not work with pipes, because eof has no meaning, he is right. If someone else demonstrates that it works, is w

Re: [Gambas-user] Pipe doesn't receive contents

2010-05-08 Thread Doriano Blengino
Benoît Minisini ha scritto: >> First you used buffered I/O, whereas PIPE in Gambas use non-buffered I/O. >> Then you use fgetc(), which reads one character, whereas in Gambas the >> code uses LINE INPUT, which is far more complex. So you are not comparing >> the two same programs... >> >> Regards,

Re: [Gambas-user] Pipe doesn't receive contents

2010-05-07 Thread Doriano Blengino
Benoît Minisini ha scritto: Trying the example code for pipes, I only get a waiting prompt, and then it jumps out of the loop. I added two little statements to have some output: DIM hFile AS File DIM sLine AS String hFile = PIPE "/tmp/FIFO1" FOR INPUT >>

Re: [Gambas-user] Pipe doesn't receive contents

2010-05-07 Thread Doriano Blengino
Rolf Schmidt ha scritto: > Hi Doriano > > >>> You can't wait until EOF on a named pipe! Also a 'tail' on a named pipe >>> will never give you some data - but 'cat' do! >>> >>> Just read and find another mechanism to stop reading. >>> >> I tried cat and tail on named fifo, and both work.

Re: [Gambas-user] Pipe doesn't receive contents

2010-05-07 Thread Doriano Blengino
Rolf Schmidt ha scritto: > Hello Rolf-Werner > >> DIM hFile AS File >> DIM sLine AS String >> >> hFile = PIPE "/tmp/FIFO1" FOR INPUT >> >> PRINT "Now let's start:" >> >> WHILE NOT Eof(hFile) >> LINE INPUT #hFile, sLine >> PRINT sLine >> WEND >> >> PRINT "That's it." >> >> > You ca

Re: [Gambas-user] Wait statements > stack overflow (gb3) (oops -typo)

2010-05-07 Thread Doriano Blengino
richard terry ha scritto: > On Friday 07 May 2010 14:29:55 richard terry wrote: > sorry, misleading code the second Wait was a typo, it should read this: > > > >> Hi LIst, >> >> I'm automatically parsing many many thousands of pages of documents, the >> patients are in a listbox, and the docume

Re: [Gambas-user] Too many open files error message

2010-05-04 Thread Doriano Blengino
Benoît Minisini ha scritto: >> This routine is called by my program, consecutively a large number of times >> during an automated process: >> >> Public Sub Display_HTML(sHTML As String, wb As WebView, Optional prefix As >> String = "html") >> >> Dim wFile As File >> Dim sFilename As String >> >

Re: [Gambas-user] Wrong error message

2010-05-04 Thread Doriano Blengino
Doriano Blengino ha scritto: > Benoît Minisini ha scritto: > >>> Benoît Minisini ha scritto: >>> >>> >>>>> Hi! >>>>> There's minor bug. >>>>> Overflow with concatenate operator causes wrong error mes

Re: [Gambas-user] Wrong error message

2010-05-03 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Benoît Minisini ha scritto: >> Hi! There's minor bug. Overflow with concatenate operator causes wrong error message. You can reproduce the bug with this code: Dim ii As Integer Dim jj As Integer For ii = 9 To 0 Step -1

Re: [Gambas-user] Wrong error message

2010-05-03 Thread Doriano Blengino
Benoît Minisini ha scritto: >> Hi! >> There's minor bug. >> Overflow with concatenate operator causes wrong error message. >> You can reproduce the bug with this code: >> >> Dim ii As Integer >> Dim jj As Integer >> >> For ii = 9 To 0 Step -1 >> jj&= ii<--- Wanted Integer got String instead. >> Nex

Re: [Gambas-user] "User components" replaced by "Libraries" in Gambas 3

2010-04-25 Thread Doriano Blengino
Ian Haywood ha scritto: > svitoos wrote: > >> I think it is better to look for libraries in the directories listed in >> GB3_LIBRARY_PATH, and if this variable is not defined >> then "/usr/lib/gambas3:/usr/local/lib/gambas3":~/.local/lib/gambas3 >> > I think this is a good idea, because gam

Re: [Gambas-user] serial port issue

2010-04-21 Thread Doriano Blengino
Robert JUHASZ ha scritto: > The communication parameters are 9600, 8, n, 1, Xon/Xoff. > >> Do you have some sort of handshaking? >> Then it /could/ happen that the device sends an Xoff, but the software does not see it at the correct time. There has been a similar issue when the new UARTs

Re: [Gambas-user] serial port issue

2010-04-21 Thread Doriano Blengino
Robert JUHASZ ha scritto: > All the parameters are the same obtained by autoconfig, except the UART > which was undefined for the added ports. > I set this parameter to the same value as for the working one: 16550A (in > fact I tried all the possible UART parameters and where the port was working >

Re: [Gambas-user] TextBox and CR

2010-04-20 Thread Doriano Blengino
Rolf-Werner Eilert ha scritto: > No, don't worry :-) > > So, this is my code now: > > PUBLIC SUB Suche_KeyPress() > DIM t$ AS String > > IF Key.Code = Key.Return OR Key.Code = Key.Enter THEN > t$ = Trim$(Suche.Text) > IF t$<> "" THEN > SucheStarten(t$) > END

Re: [Gambas-user] EOF problem

2010-04-19 Thread Doriano Blengino
ther than rummaging around in the code. You are > correct, it is sort of a waste if I am only using the variable once. In > my actual program, Fname also gets used when the database gets modified > and the file then has to be re-written. > > I am not a professional programmer,

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Doriano Blengino
without particular precautions, linux is more predictable about sleep() than win2000 or xp. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." -- Do

Re: [Gambas-user] EOF problem

2010-04-18 Thread Doriano Blengino
Les Hardy ha scritto: > Doriano Blengino wrote: > >> Les Hardy ha scritto: >> >> >>> Hi Ed, >>> I figured it out. >>> First of all, depending how the text file was emptied/created, the >>> contents may not be truely empty. &g

Re: [Gambas-user] Did anybody try to run stepper motors through paralel port

2010-04-18 Thread Doriano Blengino
n use the parallel port and high resolution timers, but... 10 us? What is the speed of your motor(s)? Anyway, I see it difficult to do it in gambas, mainly because of tight GUI integration and impossibility to use interrupts; the best way would be to separate hi-level logic from lo-level timing,

Re: [Gambas-user] EOF problem

2010-04-18 Thread Doriano Blengino
in it is not an empty file - it is a file with an empty line in it... Given such a file, at first EOF is false; doing a LINE INPUT an empty line is read, then EOF turns true. Or, at least, it should go this way. Regards, -- Doriano Blengino "Listen twice before you speak.

Re: [Gambas-user] static const?

2010-04-16 Thread Doriano Blengino
Charlie Reinl ha scritto: > Am Donnerstag, den 15.04.2010, 21:07 +0300 schrieb Jussi Lahtinen: > >> Yes, you can test it. >> >> This should generate error: >> If 1 = 2 And 1 / 0 Then Print "test" >> >> This should not.: >> If 1 = 2 And If 1 / 0 Then Print "test" >> >> if i>

Re: [Gambas-user] static const?

2010-04-15 Thread Doriano Blengino
Jussi Lahtinen ha scritto: >> Back to gambas - I don't know if the documentation says anything about >> short-circuit and things like that. May be we can assume it as a >> standard, that modern languages always do short-circuit, but the concept >> remains. >> > > Gambas doesn't have short-cir

Re: [Gambas-user] static const?

2010-04-15 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/4/14 Doriano Blengino : > > >> First example. I store some bookmarks... >> ... >> >> I could break out the loop using a logic variable, but this way I save a >> variable. Or I could test the variable in the loop

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
his routine, I finally recalled what you wanted to say with "comprobation". Yes, you are right - your code works. If I would have payed more attention to the routine, I would have noticed. But, stupidly, I concentrated only on the cycle, noting that it was missing a test on the last it

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/4/14 Doriano Blengino: > > >> Back to the beginning: a CONST declaration is something that uses no >> memory, so it can not have instances, and hence it can not be STATIC. >> > Thanks Doriano. I understand that. My q

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Les Hardy ha scritto: > >> The C language, in facts, does not even have CONSTs - it goes with >> #define. So, it would be correct to forbid STATIC when declaring CONSTs. >> > Surely this is not correct. ANSI C uses const, and C++ also uses the > const keyword. > #define (a preprocessor di

Re: [Gambas-user] static const?

2010-04-14 Thread Doriano Blengino
Fabián Flores Vadell ha scritto: > 2010/4/13 Jussi Lahtinen: > >>> Just in case: >>> >>> REPEAT >>> b = TabStrip3.Count ' In fact, this does nothing usefull >>> INC a >>> UNTIL a< TabStrip3.Count OR TabStrip3[a].Caption = IdCaption >>> >> This doesn't make same functionalit

Re: [Gambas-user] Showing the Form's Gui

2010-04-13 Thread Doriano Blengino
Fabien Bodard ha scritto: > 2010/4/13 Doriano Blengino : > >> Fabien Bodard ha scritto: >> >>> just remember to put a flag to say when the data are loaded ! >>> >>> >> What would be the reason for this flag? >> > if

Re: [Gambas-user] Showing the Form's Gui

2010-04-13 Thread Doriano Blengino
Fabien Bodard ha scritto: > just remember to put a flag to say when the data are loaded ! > What would be the reason for this flag? > 2010/4/13 richard terry : > >> On Tuesday 13 April 2010 20:50:26 Doriano Blengino wrote: >> >> Thanks doriano, that worked a

Re: [Gambas-user] Showing the Form's Gui

2010-04-13 Thread Doriano Blengino
richard terry ha scritto: > Often with forms one wants to start some processing after the form has loaded > - in my case, as my app is quite database intensive, it could involve loading > sometimes quite large amounts of data. > > I'd ideally like to have the form load visually, and then the data

Re: [Gambas-user] Parallel Port - Illegal Seek -

2010-04-08 Thread Doriano Blengino
mike ha scritto: > On 04/07/2010 02:47 PM, nando wrote: > >> Seek will not change the address. >> >> >> -- Original Message --- >> From: Doriano Blengino >> To: nand...@nothingsimple.com, mailing list for gambas users >> >>

  1   2   3   4   5   6   >