Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compare Structure question

Status
Not open for further replies.

twcman

Programmer
Joined
Jun 28, 2001
Messages
284
Location
US
I have an application structure I create to store site wide login data. I also have a session structure that is updated with the same data as the application structure. Before it is duplicated though I need to compare the contents. I do not have to identify the data that changed, simply that data "has" changed. Is there a more efficient way to do this other than looping through one comparing with a structfind? The only dumb questions are the ones that are never asked
 
You might try creating a variable that holds a timestamp. When each structure is updated, the timestamps are updated. Then all that would need to be done would be to compare the timestamps.

This may be a little tricky to set up at first, but would speed things up in the overall process. If there were a function to compare structures, it would essentially loop through them and take about the same amount of time. - tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top