polilies Posted September 30, 2010 Share Posted September 30, 2010 Hi! i need to use a table in a project which i write the barcode data on every read. i created "v" channels for the tables columns but there is something wrong about it. it's writing all the data over the old cell. i'm using an simulation sequence for the barcode(there is no real barcode). in the project which shown at the buttom, when i hit "generate" button the data changing and it senses as new incomming. after five data it has to write a new row. but not. can u help about it? regards..table_component.ctl Link to comment Share on other sites More sharing options...
AzeoTech Posted October 4, 2010 Share Posted October 4, 2010 I'm not really sure what you are asking. I can do: v.ilac1 = 4 and it will add another row to that column. You need to do that for all 5 columns to get a new row completely. Link to comment Share on other sites More sharing options...
polilies Posted October 5, 2010 Author Share Posted October 5, 2010 in this project , user has a barcode scanner. i need to get that scanned data in each scan to my tables column. i'm adding file again which has automatic sequence start. so if you push the "generate2" button you may see that the data will shift next column at the same row. but after five cycling it isn't jump to new row. it's writing over the old cell! that is happenning in my pc. i can't suggest something myself. thank you for your response !table_component2.ctl Link to comment Share on other sites More sharing options...
AzeoTech Posted October 5, 2010 Share Posted October 5, 2010 Its because you have: v.ilac1[0] = .... you should have: v.ilac1 = ... A couple other things: 1) don't use wait(), use delay() 2) you probably don't need a loop. You should, instead, put everything inside the first if() inside a function that gets called whenever generate changes. Link to comment Share on other sites More sharing options...
polilies Posted October 6, 2010 Author Share Posted October 6, 2010 thank you so much! it worked! and i apply your suggestions.now it's better. is there any way to query that the tables cells? i know it's not necessary cause i think we may do a table on sql and then will query that same way...if exists? Link to comment Share on other sites More sharing options...
AzeoTech Posted October 6, 2010 Share Posted October 6, 2010 You can't query the table because the table is just viewing the V channels, but you can use the search() function (and filter() function) on the V channels themselves to find particular rows. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.