Re: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected)

2013-04-02 Thread Ricardo Díaz Martín
Thanks Benoit!! -- 2013/4/2 Benoît Minisini > Le 01/04/2013 22:30, Ricardo Díaz Martín a écrit : > > Opps, I forgot the attached file :-( > > > > > > 2013/4/1 Ricardo Díaz Martín > > > >> Hi, > >> > >> I attach an example of the bugs detected. In my box I got name

Re: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Bruce
On Tue, 2013-04-02 at 18:54 +0200, Willy Raets wrote: 8< > For example why am I getting different results running: > sudo -s id -u > on some systems for every time I run it (without any changes to code at > all)? > > Attached gsudo.png shows the desired result (just for testing sudo) > > Been pla

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread rocko
Is it possible to do multiple replacing with/Replace/ I have several fields that I want to change in an .odt file do I have to do multiple Replace statements or can I put them all in one /Replace/ statement?? On 04/02/2013 03:34 AM, Fabien Bodard wrote: > Le 2 avr. 2013 01:37, "rocko" a écrit :

Re: [Gambas-user] saving and loading id and password in login forms

2013-04-02 Thread Ru Vuott
When I try to download an attached file, e.g. from my email account: Yahoo.it, in the dialogBox (to save the file) this notice appears: showMessage?cmd=download.failure&fid=Inbox&mid=2_0_0_1_7397_AJ0l5C4AAMQHUVXw2Q7J0HlTtcY&pid=3&tnef=&prefFilename=Desktop_Warnung2.png&view=none&cb=parent.attachm

Re: [Gambas-user] saving and loading id and password in login forms

2013-04-02 Thread Benoît Minisini
Le 02/04/2013 23:58, Ru Vuott a écrit : > Thank you very much Benoît, > > I'ld like to ask you more: > > when i'm trying to download an attachment of a mail in my yahoo mail > account, webbrowser asks me where to download but the downloading > never really starts. Perhaps it loses the authenticatio

Re: [Gambas-user] saving and loading id and password in login forms

2013-04-02 Thread Ru Vuott
Thank you very much Benoît, I'ld like to ask you more: when i'm trying to download an attachment of a mail in my yahoo mail account, webbrowser asks me where to download but the downloading never really starts. Perhaps it loses the authentication transaction, i don't know. Again, how to fix th

Re: [Gambas-user] Problem to use TASK fork processes

2013-04-02 Thread Benoît Minisini
Le 01/04/2013 19:01, Olivier Cruilles a écrit : > Hi Benoit, > > I have just question about how to use the TASK (fork process) and > particularly how to return value from the TASK to the parent. > > I used all possibilities but nothing solve my problem, sometimes the parent > of the Task(es) lose

Re: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Willy Raets
On Tue, 2013-04-02 at 22:43 +0200, Benoît Minisini wrote: > Le 02/04/2013 22:33, Willy Raets a écrit : > > It is getting more crazy by the minute: > > > > This is part of the code of previous version posted (version 0.0.5): > > > > Public Sub btnSudo_Click() > > > >If IsNull(txtPassword.Text) T

Re: [Gambas-user] Bugs in 5607 or before (last nemh update is also affected)

2013-04-02 Thread Benoît Minisini
Le 01/04/2013 22:30, Ricardo Díaz Martín a écrit : > Opps, I forgot the attached file :-( > > > 2013/4/1 Ricardo Díaz Martín > >> Hi, >> >> I attach an example of the bugs detected. In my box I got name of the form >> #0 instead FMain. >> I also got signal 11 when you try to set one variable to a

[Gambas-user] adjust widths of data broswer

2013-04-02 Thread rocko
Is there a way to change the width of the fields in data browser?? -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Cer

Re: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Charlie Reinl
Am Dienstag, den 02.04.2013, 22:33 +0200 schrieb Willy Raets: > It is getting more crazy by the minute: Hi Willy, I am not very closed to your problem, but I receive all your mails. I think you are using VMs to test all this, isn't it? With all that problems your Fedora box make, and not the oth

Re: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Benoît Minisini
Le 02/04/2013 22:33, Willy Raets a écrit : > It is getting more crazy by the minute: > > This is part of the code of previous version posted (version 0.0.5): > > Public Sub btnSudo_Click() > >If IsNull(txtPassword.Text) Then > Message.Info("First enter a password") >Else > txaOutp

Re: [Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Willy Raets
It is getting more crazy by the minute: This is part of the code of previous version posted (version 0.0.5): Public Sub btnSudo_Click() If IsNull(txtPassword.Text) Then Message.Info("First enter a password") Else txaOutput.Clear txaOutput.Text = "Ready to rumble..\n\n" $hProc

Re: [Gambas-user] Issue 415 in gambas: Cannot run child process (native code)

2013-04-02 Thread gambas
Comment #22 on issue 415 by r...@cyberjunky.nl: Cannot run child process (native code) http://code.google.com/p/gambas/issues/detail?id=415 The issue is fixed with the latest version. So cleaning up the freeing seem to have fixed it. -- You received this message because this project is config

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread rocko
DOH! I knew it was something stupid. Thanks. On 04/02/2013 10:33 AM, Jussi Lahtinen wrote: > Please see the documentation pages I linked. > Replace function takes string and returns string. Your newFile variable is > type File, not String. > > Also I recommend to use better variable naming conven

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread Jussi Lahtinen
Oh, and the solution... File.Save(sPathToFileWhereDataBelongs, Replace(File.Load(xName), "$(Name)", mName)) Jussi On Tue, Apr 2, 2013 at 8:33 PM, Jussi Lahtinen wrote: > Please see the documentation pages I linked. > Replace function takes string and returns string. Your newFile variable > i

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread Jussi Lahtinen
Please see the documentation pages I linked. Replace function takes string and returns string. Your newFile variable is type File, not String. Also I recommend to use better variable naming convention, example: Dim sName As String Dim fVar As Float Dim iVar As Integer Dim hFile As File etc. This

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-02 Thread Benoît Minisini
Le 02/04/2013 16:53, Christer Johansson a écrit : > Finally got some free time to get back into Gambas and I've been trying to > get I/O interrupt to work on the Raspberry Pi. > > I made a simple CLI test program with the following code... > > MMain.Module > > > ' Gambas module file >

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread rocko
BTW this is the offending code: _ newFile = Replace(File.Load(xName), "$(Name)", mName)_ On 04/02/2013 03:34 AM, Fabien Bodard wrote: > Le 2 avr. 2013 01:37, "rocko" a écrit : >> Not sure I'm using /Replace$/ correctly. >> I want to replace instance of $(Name) in the XML file >> with the value

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread rocko
Thanks for the input :) But I'm getting an error now: '_/Type mismatch expected file got string instead/_' /newFile is AS String /so I don't know why I would get this error. Full Code: ' Gambas module file Public nFile As File Public fName As String Public xName As String Public Sub Main() Dim

[Gambas-user] Running Sudo using Exec acts very differently from distro to distro!!

2013-04-02 Thread Willy Raets
Last post on this (see topic: Strange problem with running Shell on Fedora) my executable run on Fedora. Day after it didn't run anymore (and I changed nothing). So I coded, tested, recoded and tried all kind of things, but it just won't work. So I decided to do some testing with code initially wo

Re: [Gambas-user] Shared WiringPi library for RasPi

2013-04-02 Thread Christer Johansson
Finally got some free time to get back into Gambas and I've been trying to get I/O interrupt to work on the Raspberry Pi. I made a simple CLI test program with the following code... MMain.Module ' Gambas module file ' Setting up shared library wiringPi with bcm2835 pin naming Publi

[Gambas-user] The MagPi Magazine

2013-04-02 Thread Christer Johansson
This may be old news for some and I hope it's not to much OT... The MagPi is a free magazine focused on the Raspberry Pi and have some good information if you are just starting out. http://themagpi.com/ Maybe a Gambas 3 article in this magazine would let more people know about Gambas 3 and wha

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread Jussi Lahtinen
Here is the documentation page for commands: http://www.gambasdoc.org/help/lang?v3 And this is for replace command: http://gambasdoc.org/help/lang/replace?v3 Jussi On Tue, Apr 2, 2013 at 2:36 AM, rocko wrote: > Not sure I'm using /Replace$/ correctly. > I want to replace instance of $(Name)

Re: [Gambas-user] Need a good idea - a slider with two handles

2013-04-02 Thread Fabien Bodard
You need to use a usercontrol and a drawing area. Then withvthe draw class all becomebpossible Le 1 avr. 2013 13:30, "Tobias Boege" a écrit : > On Mon, 01 Apr 2013, Bruce wrote: > > A user had a good idea and wants to know if we can build a form with > > sliders that control both the maxima and

Re: [Gambas-user] Output to Libre Office Writer ??

2013-04-02 Thread Fabien Bodard
Le 2 avr. 2013 01:37, "rocko" a écrit : > > Not sure I'm using /Replace$/ correctly. > I want to replace instance of $(Name) in the XML file > with the value of the /mName/ variable > > Code: > /xName = "home/rocko/Zip/content.xml"// > // newFile = Replace$(xName, "$(Name)", mName)/ Newfile=replac