[Gambas-user] How to make installation package

2017-07-05 Thread Fernando Cabral
I'd like to make an installation package to install a gambas program on a
machine that does not have gambas. I tried doing it clicking on
Project -> Make -> Installation package.
After presenting some questions, it runs and creates 22 files (regular,
.gz, dsc and deb files). Four of them a *.deb files. Now, here are the
issues:

1) They are all small files, so, for sure, they do not contain the
interpreter
2) trying to install the deb files results in nothing (no error message,
but nothing happens)

Is there a wiki page where I can get better information on how to do this?

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Is it possible to read a file directly into an array?

2017-07-05 Thread PICCORO McKAY Lenz
2017-07-04 11:29 GMT-04:30 Fernando Cabral :

> Well, I found a very easy way to do it:
>
>
> *Dim Wordlist as string []*
>
> *Wordlist = Split(File.Load("strings.txt"), "\n")*
> It seems it can't be easier, can it?
>
wow, very easy.. good made it


>
>
>
>
> 2017-07-04 12:06 GMT-03:00 Fernando Cabral :
>
> > Is there a straightforward way to read a file directly into an array?
> > Say I have a file with several lines (lines ended with "\n").
> > I want to read each line and push its content as an item of an array.
> >
> > Lets say the file contents are "a\nb\nc\n" and what I need is:
> >
> > word[0] = "a"
> > word[1] = "b"
> > word[2] = "c"
> >
> > Yes, I know I can LINE INPUT each line and copy it into the array.
> > But I have seen that Gambas has so many shortcuts that perhaps there is
> > one for this operation too.
> >
> > Any hints?
> >
> > Regards
> >
> > - fernando
> >
> >
> > --
> > Fernando Cabral
> > Blogue: http://fernandocabral.org
> > Twitter: http://twitter.com/fjcabral
> > e-mail: fernandojosecab...@gmail.com
> > Facebook: f...@fcabral.com.br
> > Telegram: +55 (37) 99988-8868 <(37)%2099988-8868>
> > Wickr ID: fernandocabral
> > WhatsApp: +55 (37) 99988-8868 <(37)%2099988-8868>
> > Skype:  fernandojosecabral
> > Telefone fixo: +55 (37) 3521-2183 <(37)%203521-2183>
> > Telefone celular: +55 (37) 99988-8868 <(37)%2099988-8868>
> >
> > Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> > nenhum político ou cientista poderá se gabar de nada.
> >
> >
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183
> Telefone celular: +55 (37) 99988-8868
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is the simplest way to display text properties in Gambas?

2017-07-05 Thread Fernando Cabral
I'd like to display text highlights like bold and italics. Can I do it
using TextArea? If yes, how?

If I can't which resource should I use?

Regards

- fernando

-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1102: ODBC driver super buggy 3: impossible made subquerys if the previous its a call/select to SP

2017-07-05 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1102=L21haW4-

Comment #4 by PICCORO LENZ MCKAY:

some info related to this issue too: 
https://github.com/FreeTDS/freetds/issues/131#issuecomment-313166673 but i cant 
understand in total that freddy77 said!



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query

2017-07-05 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1113=L21haW4-

Comment #15 by PICCORO LENZ MCKAY:

some info from freetds git repo: 
https://github.com/FreeTDS/freetds/issues/131#issuecomment-313166673
are that info usefully? i cannot understant that freddy77 said!



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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

2017-07-05 Thread Fernando Cabral
Tobi wrote:

> n your mail I can see three distinct attempts at writing down a
> negative character class: [^[:alpha:], [^[alpha]], and [^[:alpha]],
> but the correct syntax is
>
>   [[:^alpha:]]
>
> You want to check this first.


Right again, Tobi. I can't understand how I missed this. Thank you.

- fernando

2017-07-05 6:37 GMT-03:00 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 "powerless".
> >
> > Problem is that it seems [^[alpha]] includes accented characters like
> "á",
> > "é", "ã".
> >
> > That is, accented characters are not understood as alpha, but not alpha.
> >
> > Please, note that I have compiled it with the UTF8 flag:
> > *   re.Compile(poder[^[:alpha]], RegExp.utf8)*
> >
> > Any hints?
> >
>
> In your mail I can see three distinct attempts at writing down a
> negative character class: [^[:alpha:], [^[alpha]], and [^[:alpha]],
> but the correct syntax is
>
>   [[:^alpha:]]
>
> You want to check this first.
>
> Regards,
> Tobi
>
> --
> "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
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Mystery with file.load and regexp

2017-07-05 Thread Fernando Cabral
bb wrote:

>I think you might find that the last character of indesejaveis.txt is a \n
(as is the case for many, many > files) so in actual fact your original
split did exactly what it was supposed to do.
>
> And your work around is correct. Although it is not actually a work
around it is a very
> common  construct when dealing with text files.

> So, I very much doubt there is a bug in File.Load()

In the beginning, I thought I File.Load() had an idiosyncratic behavior.
Then I understood that's not true. It just reads everything from the file
into the variable. So, it is good behavior when it brings in the last "\n".

Then I thought Split() had a strange behavior since it brought in something
that did not exist after the last separator, that is, an empty string.

Then, I discovered I was wrong on this account: if I have a separator as
the last real element, then after that what I have is an empty string. So,
I can't blame Split() for bringing it in. Unless I explicitly tell Split()
to drop it.

Yes, in this case, the bug was in my brain. It is called lack of knowledge
or faulty reasoning.

Thank you bb and Tony for showing me the light.

- fernando


2017-07-05 0:43 GMT-03:00 bb :

> On 05/07/17 11:58, Fernando Cabral wrote:
>
>> I have found and worked around the problem. When you do the following:
>>
>> *Dim Expressions as string[] =
>> Split(File.Load("/home/fernando/.config/libreoffice/4/user/
>> basic/indesejaveis.txt"),
>> "\n") *
>>
>> The last item pushed into *Expressions* is an empty string ("") even
>> though
>> it DOES NOT exist
>> in the file. So, the expressions are compiled one after the other til the
>> last one, that is empty. Then the program crashes.
>>
>> So it seems there is a bug in the *load.file()*. Bug that I was able to
>> compensate for by adding the option *True* in the call to the functions
>> *split()*.
>>
>>
>
>> I think you might find that the last character of indesejaveis.txt is a
> \n (as is the case for many, many files) so in actual fact your original
> split did exactly what it was supposed to do.
>
> And your work around is correct. Although it is not actually a work around
> it is a very common construct when dealing with text files.
>
> So, I very much doubt there is a bug in File.Load()
>
> b
>



-- 
Fernando Cabral
Blogue: http://fernandocabral.org
Twitter: http://twitter.com/fjcabral
e-mail: fernandojosecab...@gmail.com
Facebook: f...@fcabral.com.br
Telegram: +55 (37) 99988-8868
Wickr ID: fernandocabral
WhatsApp: +55 (37) 99988-8868
Skype:  fernandojosecabral
Telefone fixo: +55 (37) 3521-2183
Telefone celular: +55 (37) 99988-8868

Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
nenhum político ou cientista poderá se gabar de nada.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


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 "powerless".
> 
> Problem is that it seems [^[alpha]] includes accented characters like "á",
> "é", "ã".
> 
> That is, accented characters are not understood as alpha, but not alpha.
> 
> Please, note that I have compiled it with the UTF8 flag:
> *   re.Compile(poder[^[:alpha]], RegExp.utf8)*
> 
> Any hints?
> 

In your mail I can see three distinct attempts at writing down a
negative character class: [^[:alpha:], [^[alpha]], and [^[:alpha]],
but the correct syntax is

  [[:^alpha:]]

You want to check this first.

Regards,
Tobi

-- 
"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
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user