Hi All,
thanks in advance ,
i have more then 236 Arguments and i want to check any argument is empty or not and i want that empty argument name or list so i can assign new value to that particular arguments
Regards,
Ram Gurav
Hi All,
thanks in advance ,
i have more then 236 Arguments and i want to check any argument is empty or not and i want that empty argument name or list so i can assign new value to that particular arguments
Regards,
Ram Gurav
@Ram_Gurav1 Can you elaborate more about arguments like datatype n all, any screenshot for reference?
Regards,
Ajay Mishra
Thanks for quick response
we have get data from one table and assign that data to My arguments (236) some time any argument is empty so we can assign data from second table so we need list of arguments to assign second table data
all arguments datatpe is string only
@Ram_Gurav1 As much as I understand your query, I believe utilizing a Dictionary of Strings would be the most efficient approach. Since you’re fetching data from a datatable and assigning it to arguments, a Dictionary provides an organized way to manage this data.
Using Dictionary, you can store the arguments as keys and their corresponding values as dictionary values. This makes it easy to check for empty arguments and assign data from the second table accordingly. In case any argument is empty, you can simply look up its name in the dictionary and retrieve the corresponding value from the second table.
Additionally, using a Dictionary allows for faster access and manipulation of data compared to other data structures, which can be crucial for handling a large number of arguments efficiently.
Best Regards,
Ajay Mishra
I will eco what Ajay mentioned already. Whopping 236 arguments
that’s really bad code.
Please use collections like List/Dictionary/DataTable etc.
Thanks,
Ashok ![]()