[Gambas-user] ListView with spaces help

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Jan 29 20:31:44 CET 2011


I'm not sure what you are trying to do.
If you send text "this is test", then "this" is considered as command and
rest as parameters.

Also you cannot give command for Exec with spaces.
http://gambasdoc.org/help/lang/exec

Can you send your project to illustrate your problem?

Jussi


On Sat, Jan 29, 2011 at 21:17, Nicolas Koch <nkoch22 at ...626...> wrote:

> I have a populated ListView and I want to run commands from the list, but
> the list items with spaces won't work in SHELL or EXEC.
>
> Message.Info(ListView.Current.Text) will return the list item with spaces
> as
> it should ie. "this is test"
>
> however when I go to
>
> EXEC [ListView.Current.Text]
> or
> SHELL ListView.Current.Text
>
> only "this" will show up in SHELL or EXEC and not "this is test"
>
>
> How do I get ListView.Current.Text to keep the spaces when I EXEC or SHELL?
>
>
>
> code:
>
> PUBLIC SUB Run_Click()
>
>  Message.Info(ListView.Current.Text)
>
>  *' EXEC [ListView.Current.Text]*
>
>  SHELL (ListView.Current.Text)
>
> END
>
> --
>
> -Nick
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> 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