View previous topic :: View next topic |
Author |
Message |
Teamgreentech Valued Newbie
Joined: 07 Dec 2010 Posts: 46 Location: Somerset
|
Posted: Sat May 05, 2012 4:27 pm Post subject: Problem trying to separate table data in variable with PARSE |
|
|
ok I've not worked with tables before and and just seen the the data is separated with @tab() rather than |
I want to be able to click on an id in col 1 and just have the text in that col copied into a input box on my gui but end up with the whole line
My eforts to Parse the string is not working, can anyone offer some help please
my code
Code: | :Child_StockCLICK
option fieldsep,@tab()
%%parse = @dlgtext(Stock)
PARSE "%%fspakorderid;%%rubbish",%%parse
info %%fspakorderid
info %%rubbish
option fieldsep,|
end
goto Child_evloop3 | [/code] _________________ Many thanks
Andy @ Team Green Technology |
|
Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1752 Location: Space and Time
|
Posted: Sun May 06, 2012 2:23 pm Post subject: |
|
|
instead of using @dlgtext(Stock), use @item() and you can specify which column you want to get the info from starting at 0... so you would use @item(Stock,,0) to get the currently selected row and the item in column 0.
hope that helps. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon May 07, 2012 2:02 am Post subject: |
|
|
LiquidCode is right. The following should work...
Code: | :Child_StockCLICK
%%fspakorderid = @item(Stock,,0)
info %%fspakorderid
end
goto Child_evloop3 |
|
|
Back to top |
|
 |
Teamgreentech Valued Newbie
Joined: 07 Dec 2010 Posts: 46 Location: Somerset
|
Posted: Mon May 07, 2012 9:26 am Post subject: |
|
|
Thanks guys for your help on this. Love the column item advise. very useful
I did figure out how to simply parse the information but to specify content of particular column is a more eligant solution I think
Best Regards
Andy - Team Green Tech _________________ Many thanks
Andy @ Team Green Technology |
|
Back to top |
|
 |
|