Here is what I need help with, spent the last hour trying to figure out
i have a datattable called dt_users which is like this
Ahmad | 9199191
Bob | 3293993
Ryan | 299292
I am looping through some name and phone number strings. I will need to remove all the rows that have the name and corresponding phone number from datatable dt_users.
Here is what I tried
Build a datatable dt_temp
Everytime I loop, add the name and phone number to the dt_temp
Remove the 1st data row in dt_temp as when creating it in (1), I will have to include a useless row
Loop though dt_temp and remove each row from dt_users. However, I am unable to do so.
I understand that what I am trying is clunky/ there is probably a better way to do this, so I am seeking help and advice. Thank you all good sirs and madams.
I have one datatable, with two columns, name and phone number.
I have another datatable, same format. As i iterate it, depending on a specific condition that I have, I want to remove certain rows from the abovementioned datatable. What is the simplest way to do this?
As I do a for each row in datattable #2, depending on the values in the row, I want to remove them from datatable #1.
Hi sir, sorry i dont really follow. I try explain better now, sorry for poor english.
I have a datatable with username and phone model number. Example
Ryan | 1022
Ryan | 3011
Bob | 2022
Bob | 1022
Bob | 3011
I am navigating to a website to check for the availability of each username and corresponding phone number.
So for example, if the website has
Bob | 1022
Ryan | 3011
Bob | 3011 available, at the end I want to have a datatable that just has
Ryan | 1022
Bob | 2022 remaining. How do i go about doing this? I cannot just remove based on name or phone model alone as some users have the same phone model number. Sorry that I wasnt clear in the original post.
Right now what I am doing on the website is iterating through each row of the original datatable to check whch user and corresponding phone model is available. Should i remove the respective row while iterating? I believe I cant change the datatable while it is being iterated through?