Re: [Gambas-user] ListView with spaces help

2011-01-30 Thread Werner
On 30/01/11 03:17, Nicolas Koch 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 wh

Re: [Gambas-user] ListView with spaces help

2011-01-29 Thread Michael
SInce a SHELL command must exclude spaces then put it into your listview without spaces. If you want to include spaces for readability then remove them when you pass to SHELL: ListView.Current.text.Replace(" ", "") Regards Michael On 30/01/11 06:17, Nicolas Koch wrote: > I have a populated Lis

Re: [Gambas-user] ListView with spaces help

2011-01-29 Thread Jussi Lahtinen
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 2

[Gambas-user] ListView with spaces help

2011-01-29 Thread Nicolas Koch
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 L