forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Problem trying to separate table data in variable with PARSE

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
Teamgreentech
Valued Newbie


Joined: 07 Dec 2010
Posts: 46
Location: Somerset

PostPosted: Sat May 05, 2012 4:27 pm    Post subject: Problem trying to separate table data in variable with PARSE Reply with quote

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 Sad

My eforts to Parse the string is not working, can anyone offer some help please Smile

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
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Sun May 06, 2012 2:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon May 07, 2012 2:02 am    Post subject: Reply with quote

LiquidCode is right. The following should work...
Code:
:Child_StockCLICK
%%fspakorderid = @item(Stock,,0)
 info %%fspakorderid
end
goto Child_evloop3
Back to top
View user's profile Send private message Send e-mail
Teamgreentech
Valued Newbie


Joined: 07 Dec 2010
Posts: 46
Location: Somerset

PostPosted: Mon May 07, 2012 9:26 am    Post subject: Reply with quote

Thanks guys for your help on this. Love the column item advise. very useful Smile

I did figure out how to simply parse the information but to specify content of particular column is a more eligant solution I think Wink

Best Regards
Andy - Team Green Tech

_________________
Many thanks
Andy @ Team Green Technology
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group