[Gambas-user] This Gambas 2 example does not work properly:

Jussi Lahtinen jussi.lahtinen at ...626...
Wed May 11 19:08:39 CEST 2011


I cannot reproduce with Gambas 2.23.0 @ Ubuntu 10.10 64bit.

Jussi



On Wed, May 11, 2011 at 06:14, nando <nando_f at ...951...> wrote:

> The problem is setting a zero length string to the label
> For example
>
>
>    'make a label label1 on the form with text ="B"
>    'then run the following...
>
>    DIM s AS STRING
>    s = "D"
>    s = Left(s, 0)
>    PRINT Len(s) - 1, "*"; s; "*"  ' s is correct: empty string
>    Label1.text = s                ' <-this does not overwrite the 'B' to
> empty.
>
> -Fernando
>
>
> ---------- Original Message -----------
> From: "nando" <nando_f at ...951...>
> To: "Benoit" <gambas-user at lists.sourceforge.net>
> Sent: Tue, 10 May 2011 22:58:58 -0400
> Subject: [Gambas-user] This Gambas 2 example does not work properly:
>
> > Make a label on a form: Label1
> >
> > In code, run the following 3 lines:
> >
> >   Label1.text = "B"
> >   Label1.text = Left$(Label1.text, Len(Label1.Text) - 1)
> >   Label1.text = Left$(Label1.text, 0)
> >
> > Line 2 or line 3 should reduce it to an empty string.
> > It doesn't
> >
> > -Fernando
> >
> >
> ------------------------------------------------------------------------------
> > Achieve unprecedented app performance and reliability
> > What every C/C++ and Fortran developer should know.
> > Learn how Intel has extended the reach of its next-generation tools
> > to help boost performance applications - inlcuding clusters.
> > http://p.sf.net/sfu/intel-dev2devmay
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> ------- End of Original Message -------
>
>
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list