[Gambas-user] Upd 3.15.2, a) Val("15911.23046875") fails in Xub16.04LTS only b) \t not working (anymore)

Jussi Lahtinen jussi.lahtinen at gmail.com
Sat Sep 26 20:17:34 CEST 2020


Do Val("15911,23046875") work (IE instead of "." use ",")?

Jussi


On Sat, Sep 26, 2020 at 2:02 PM ub2 at gmx.ch <ub2 at gmx.ch> wrote:

> Dear Gambas Cracks
>
>
> a) Val("15911.23046875") fails in Xub16.04LTS:
> After Update 3.15.2 below given example fails in Xubuntu 16.04LTS but
> not in 18.04LTS. Both with same localization (i believe).
>
> Did something change with Val("15911.23046875") in 3.15.2 ?
> Some hints how to make Val() more robust ?
>
>
> b) No \t in Messages:
> \t does not work in Messages (anymore or never before)?
>
>
> Sb out there having the same problem ?
> Any feedback would be welcome.
>
>
> Thanks ub2
>
> ---------------------------------------------------------------------
> example:
> Dim $RamInst_str$, $RamInUse_str$, $RamAvail_str$, $MsgTxt$ As String
>
>     Stop    'Fail in Xub1604LTS after Upd Gambas 3.15.2
>             'Fail in Val("15911.23046875")     <<<<====
>
>     $RamInst_str$ = "15911.23046875"
>     $RamInUse_str$ = "12345.0"
>
>     Stop    'Fail: Val($RamInst_str$)
>     $RamAvail_str$ = Val($RamInst_str$) - Val($RamInUse_str$)
>         'ok     with Xub16.04LTS + Gambas 3.15.1,
>         'FAIL*  with Xub16.04 LTS + 3.15.2
>         'ok     with Xub18.04LTS + Gambas 3.15.1
>         'ok     with Xub18.04 LTS + 3.15.2
>
>     '*Fail 1: Typenunverträglichkeit:
>     '         Erwartet Number, statt dessen Null erhalten
>
>     $MsgTxt$ = "Check RAM:\n"
>                 "+ Installed: " & "\t+ " & CStr($RamInst_str$) & "\n"
>                 "- In use : " & " \t- " & CStr($RamInUse_str$) & "\n"
>                 "= available : " & "\t= " & CStr($RamAvail_str$) & "\n"
>
>     Message.info($MsgTxt$)
>    '"Fail" 2: \t not working inside MessageBox (anymore? since Ver?)
>
>     $MsgTxt$ = "<pre>" & $MsgTxt$ & "</pre>"
>     Message.info($MsgTxt$)      '\t ok
>
>
> [System]
> Gambas=3.15.2
> OperatingSystem=Linux
> Kernel=4.4.0-190-generic
> Architecture=x86_64
> Distribution=Ubuntu 16.04.7 LTS
> Desktop=XFCE
> Theme=gtk
> Language=de_DE.UTF-8
> Memory=15911M
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200926/7ce92835/attachment-0001.htm>


More information about the User mailing list