Re: [Gambas-user] any way to convert Result to Collection more faster than copy?

2017-07-02 Thread Christof Thalhofer
Am 02.07.2017 um 02:16 schrieb PICCORO McKAY Lenz: >> If you query such a lot of tuples into Sqlite you won't make it >> better, I think. Also a collection seems to be not very fast. >> > tested, very slower... you have right.. sqlite memory more faster > butstill slow process passed to sqlite fr

Re: [Gambas-user] Fwd: Problem to be examined by those who must use UTF8 with Gambas

2017-07-02 Thread PICCORO McKAY Lenz
2017-07-01 18:29 GMT-04:30 Jussi Lahtinen : > Please send that to the mailing-list. > in a forum its easy to the users, only click to the "reoly" button.. but due gambas-users its a mail list, its a compĺication, need to edit the subject, the Remitent, etc.. so this king of errors/mistakes its a

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

2017-07-02 Thread Fernando Cabral
I've browsed the documentation but did not find what I am looking for: a way do read a html (or rtf) file and display it using some built in method. Say, something simple like this: *Public Sub Main() Dim TextFile As File Dim RtfText As String TextFile = Open "~/Doc.rtf" For Read Line I

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

2017-07-02 Thread PICCORO McKAY Lenz
hi fernando,, u must read as stream.. see it: here a example minimal: http://gambaswiki.org/wiki/lang/lineinput but i think that what do you want its "understand" the file format! right? due i guess rtf files have some "rich"text inside.. something in some binary/specific non ascii/plain text ..

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

2017-07-02 Thread Fernando Cabral
No, Lenz, reading the file is not te issue. This is easy and can be done with several different methods. What I am looking for is a way to render the html file (or rtf file). So, I want to read the file and display its contents. Displaying (rendering the html) is the issue. To make it more concret

[Gambas-user] internal call in a function from external call

2017-07-02 Thread PICCORO McKAY Lenz
i have two modules, exSysInfo and exSysNet in the exSysNet i have: Public Function getIpdef(Optional defIf As String = getIfdef()) As String commandshelltmp = "ifconfig " & defIf & " | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'" End n

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

2017-07-02 Thread Gianluigi
You can use WebView (gb.gui.qt.webkit) Gianluigi 2017-07-02 15:24 GMT+02:00 Fernando Cabral : > No, Lenz, reading the file is not te issue. This is easy and can be done > with several different methods. > What I am looking for is a way to render the html file (or rtf file). So, I > want to read

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

2017-07-02 Thread Fernando Cabral
Thank you Gianluigi. It seems there more than one way to skin this cat. I believe the problem has to do with my ignorance concerning Gambas. I have just found a DocumentView that will probably work too. Since I have a full example of this usage, I'll probably try it first. Thank you. - fernando

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

2017-07-02 Thread PICCORO McKAY Lenz
2017-07-02 8:54 GMT-04:30 Fernando Cabral : > No, Lenz, reading the file is not te issue. This is easy and can be done > with several different methods. > What I am looking for is a way to render the html file (or rtf file). So, > I want to read the file and display its contents. > Displaying (ren

[Gambas-user] both uses /bin/sh, wiki seems does asumme always bash¡?

2017-07-02 Thread PICCORO McKAY Lenz
whats the differentces between usage of shell and exec¡? http://gambaswiki.org/wiki/doc/shellexec wiki said that both in last call/exec to the /bin/bash, *umm i think must be "default shell" or really only calls to the /bin/sh ?* Lenz McKAY Gerardo (PICC

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

2017-07-02 Thread Gianluigi
To see how in a browser, webview is better, you have a WebBrowse sample in farm example. Gianluigi 2017-07-02 15:52 GMT+02:00 Fernando Cabral : > Thank you Gianluigi. It seems there more than one way to skin this cat. > I believe the problem has to do with my ignorance concerning Gambas. > I hav

[Gambas-user] how specifiy the shell in a shell gambas call, wiki does not give example

2017-07-02 Thread PICCORO McKAY Lenz
how can i use that, there's no example, : Specifying The Shell SINCE 3.1 You can specify which shell is used for running the command with the System.Shell property. By default, the shell command is run through /bin/sh. and wiki ends abruptly wi

Re: [Gambas-user] how specifiy the shell in a shell gambas call, wiki does not give example

2017-07-02 Thread Jussi Lahtinen
Since it's string, I assume: System.Shell = "/bin/sh" Jussi On Sun, Jul 2, 2017 at 5:44 PM, PICCORO McKAY Lenz wrote: > how can i use that, there's no example, : > Specifying The Shell > > SINCE 3.1 > > You can specify which shell is used for running the command with the > System.Shell

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

2017-07-02 Thread PICCORO McKAY Lenz
2017-07-02 12:12 GMT-04:30 Fernando Cabral : > As to this, I think you still did not understand what I needed, which is > to render a HTML or RTF file. This has nothing to do with HTTPD or HTTP. > The RTF and HTLM file are local file. I open them and them I wanted do > display them. No protocols i

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

2017-07-02 Thread Fabien Bodard
Well DocumentView is just a viewer i've done for gb.report. In fact it's abilities is to manages different Image in a paging style layout. So this tool is good for display Documents such as pdf or reports. But for those documents the libs pdf and report have a .Draw method that render the image in

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

2017-07-02 Thread Fernando Cabral
2017-07-02 17:19 GMT-03:00 Fabien Bodard : > Well DocumentView is just a viewer i've done for gb.report. In fact > it's abilities is to manages different Image in a paging style layout. > Starting with you example I have been able to do what I needed. I just deleted the part that allows the user

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

2017-07-02 Thread PICCORO McKAY Lenz
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 will do it; RTF will do > its does not matter, ... with pdf works due its the same idea

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 will do it; RTF will do > > >

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

2017-07-02 Thread PICCORO McKAY Lenz
2017-07-02 19:20 GMT-04:00 Tobias Boege : > No, the IDE does *not* use the built-in HTTP server. Delivering HTML > documents via HTTP is something entirely different from rendering them. > The IDE uses gb.gui.qt.webkit's WebView to display help pages. It doesn't > need an HTTP server. Your web bro