I have a Scenario of Saving a List of VehicleDrivers into an Array/List and then Comparing This Array with another set of values present into .dat file.
I am saving the List of VehicleDrivers from ServerResponse using Correlation.
using the code below-
web_reg_save_param("DriverName","LB=Driver\"\":\"","RB=\"","Search=Body","ORD=ALL",LAST);
and I am getting the list of Drivers which I can see in Outpur window.
Now the problem is
1- How can i save all these VehicleDrivers values into an Array/List using C language.
2- After Saving all these Driver Values, how can i Compare these values OneByOne FROM existing .dat file, to make sure if ServerResponse has any Existing values (as present in .dat file)
So the Pseudo Code will be like below-
//Get the Total Count of Drivers using Correlation and Loop through it -
driverCount = atoi(lr_eval_string("{DriverName_count}"));
for (i = 1; i <= driverCount; i++)
// Create Full List of Drivers
sprintf(DriverArr, "{DriverName_%d}", i);
//Now Comparing the ServerResponse With DriverName present into .dat file (FirstName and LastName)
if (strcmp(lr_eval_string(DriverArr),strcat(strcat(lr_eval_string("{NewDriverFirst}"), " "), lr_eval_string("{NewDriverLast}"))) == 0)
So, Could you please let me know,
1- How can I Store ALL DriverNames coming in ServerResponse into an ARRAY or LIST ?
2- Compare that Array/List (ALL Values OnebyOne) with EACH Value present into .dat file (Here, How can I Iterate the Loop Completely EACH time For All the values present into .dat file,
So that Each DriverName present into .dat file Should get Compared with ALL values of ServerResponse OneByOne)
Thanks
Sam