[Gambas-user] User Digest, Vol 28, Issue 20

Jussi Lahtinen jussi.lahtinen at gmail.com
Fri Jan 10 21:05:24 CET 2020


For what reason you are using embedded arrays?
Maybe you want;
Private a as new string[300]

They are faster and don't have restrictions.


Jussi

On Fri, Jan 10, 2020 at 9:53 PM Steve G via User <
user at lists.gambas-basic.org> wrote:

> I used to use.
>
> Private a[300] as string
>
> Declared in top of module
>
> That now becomes read only.
> As for fonts it is in the paint.font.size while printing to paper. The 18
> point becomes 22 when printed and a 8 becomes 4 when printed. It's just all
> over the place
>
> Sent from TypeApp <http://www.typeapp.com/r?b=15723>
> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote:
>>
>> Send User mailing list submissions to
>>  user at lists.gambas-basic.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  http://lists.gambas-basic.org/listinfo/user
>> or, via email, send a message with subject or body 'help' to
>>  user-request at lists.gambas-basic.org
>>
>> You can reach the person managing the list at
>>  user-owner at lists.gambas-basic.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of User digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: How to Align.Justify (Gianluigi)
>>    2. exec also working as shell why? (PICCORO McKAY Lenz)
>>    3. Re: New update has screwed everything up. (Jussi Lahtinen)
>>
>>
>> ------------------------------
>>
>>
>> Message: 1
>> Date: Fri, 10 Jan 2020 16:24:57 +0100
>> From: Gianluigi <bagonergi at gmail.com>
>> To: Gambas Mailing List <user at lists.gambas-basic.org>
>> Subject: Re: [Gambas-user] How to Align.Justify
>> Message-ID:
>>  <CAJ2rqFZ_WPbLT-gupVmDL27vD28-8cMaizkAUi5+kG9qcaB0-w at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi <bagonergi at gmail.com> ha
>> scritto:
>>
>>
>>>  In .local/share/gambas3/gianluigi of your home folder.
>>
>>
>>
>> Edit: .local/share/gambas3/src/gianluigi
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200110/b0e863dc/attachment-0001.html>
>>
>> ------------------------------
>>
>>
>> Message: 2
>> Date: Fri, 10 Jan 2020 12:38:17 -0400
>> From: PICCORO McKAY Lenz <mckaygerhard at gmail.com>
>> To: Gambas Mailing List <user at lists.gambas-basic.org>
>> Subject: [Gambas-user] exec also working as shell why?
>> Message-ID:
>>  <CALci+FSXABk5QHjcD8q+wGMQ1cxN+qX4AJOLn1pW=WB9-7-Gtg at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> i have a code where i want to pass content to main.. but i never raised the
>> content:
>> cadena only are filled with content after main raises end, why .. if i not
>> use shell?
>> i attached the project
>>
>> i have a class and a module main, class are:
>>
>> Public cadena As String = "ver"
>> Public linea As Collection
>> Private lineas As String[]
>>
>> Public Sub Main()
>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo"
>> End
>>
>>
>> Public Sub Processo_Read()
>> Dim sLine As String
>>  Dim llavevalor As String[]
>>   Dim a As Integer
>>   sLine = Read #Last, -256
>>   cadena = cadena & sLine
>>   lineas = Split(sLine, gb.NewLine, "", True)
>>   For a = 0 To lineas.max
>>       If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 Then
>>         llavevalor = Split(lineas[a], "=", "\"", False, False)
>>         linea.Add(llavevalor[1], llavevalor[0])
>>       Endif
>>   Next
>> End
>>
>>
>> SO in my Main modulo i have:
>>
>> Public Sub Main()
>> Dim ver As New CourierConfigDetector
>> ver.Main
>> Print ver.cadena
>> End
>>
>> cadena only are filled with content after main raises end, why .. if i not
>> use shell?
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200110/5217dfeb/attachment-0001.html>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: courierauthtest-0.0.1.tar.gz
>> Type: application/gzip
>> Size: 11777 bytes
>> Desc: not available
>> URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200110/5217dfeb/attachment-0001.gz>
>>
>> ------------------------------
>>
>>
>> Message: 3
>> Date: Fri, 10 Jan 2020 19:59:07 +0200
>> From: Jussi Lahtinen <jussi.lahtinen at gmail.com>
>> To: Gambas Mailing List <user at lists.gambas-basic.org>
>> Cc: Beno?t Minisini <g4mba5 at gmail.com>, Steve G
>>  <simonlebon54 at yahoo.com>
>> Subject: Re: [Gambas-user] New update has screwed everything up.
>> Message-ID:
>>  <CAFJMe7S0pqUAyzNz_b1U53D0fkHHvHZEKiQ5ZM9K3ZpkgTpQ-Q at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> There are no global variables in Gambas. Do you mean public variables? Can
>> you give example code of what has changed?
>> I don't see any changes in font sizes on Linux Mint.
>>
>>
>> Jussi
>>
>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User <
>> user at lists.gambas-basic.org> wrote:
>>
>>  I don't have the version available right now but I will get that for you.
>>>  The global variables the way they were being declared became read only so
>>>  they had to be declared differently. As far as the print I have multiple
>>>  problems with that. Font sizes have changed their either miniscule or huge.
>>>  I am currently going through every single program that prints and adjusting
>>>  the font size is down two to four points each. I also occasionally get
>>>  blank prints. I do not recall what version I was using but I did a update
>>>  for all software and this is when all these problems kicked in. I also
>>>  recall seeing something about other people having problems with various
>>>  aspects of the new updates. I'm very upset about this because it looks like
>>>  nobody bothered testing it. Even though I know that could not be the case.
>>>  Bottom line I'm having massive problems in print. Problems that were not
>>>  there until after the update. Perhaps you thought you were cleaning
>>>  something up not thinking that people might be using it that way.
>>>
>>>  Sent from TypeApp <http://www.typeapp.com/r?b=15723>
>>>  On Jan 9, 2020, at 16:46, "Beno?t Minisini" <g4mba5 at gmail.com> wrote:
>>>
>>>>
>>>>  Le 10/01/2020 ? 02:33, Steve G via User a ?crit :
>>>>
>>>>   Using Fedora 30 and 31. Whatever the new runtime update is that came in,
>>>>>   it changed how Global variables are declared which is caused me a lot of
>>>>>   grief. It is also changed printing Styles. Seems as though the font size
>>>>>   is no longer accepted. So my printing of things like receipts for
>>>>>   people, is horribly screwed up. Is there an easy fix to this so that it
>>>>>   works like it did before? Or am I going to have to spend months
>>>>>   rewriting print so that it works right again?
>>>>
>>>>
>>>>
>>>>  Which version of Gambas do you have?
>>>>
>>>>  Which version did you use before?
>>>>
>>>>  What are you talking about?
>>>>
>>>>  There is no change in "how Global variables are declared". No idea what
>>>>  you mean.
>>>>
>>>>  Same thing for "the font size is no longer accepted". What does it mean?
>>>
>>>
>>>
>>>  ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200110/708baa1d/attachment.html>
>>
>> ------------------------------
>>
>>
>> Subject: Digest Footer
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>>
>>
>> ------------------------------
>>
>>
>> End of User Digest, Vol 28, Issue 20
>> ************************************
>>
>>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200110/bd169344/attachment.html>


More information about the User mailing list