Jfp87
05-25-2015, 10:30 AM
Guys,
My code creates different folders which contain the same documents but have different revisions. To distinguish the revision of the folder I have been using the folder's name; so I might have a folder titled "R1" and another "A1". Another part of my code will compare the folder names and decide which is the latest revision by comparing values I have assigned to each of the possible revisions. Unfortunately, the user may change the folder name, in which case this method breaks down.
My next approach will be to determine the revision of the folder by opening a document within the folder and searching for the value of the cc named "Status", which holds the revision. In this way, the code will store the folder name and revision in arrays. The latest revised folder will be determined using these arrays.
Does this sound like an ok way of doing things? Or is there a more obvious simpler way? I am basically trying to allow the user to rename the folder if necessary, but still have the proper latest revision available each time.
Thanks,
Joe
My code creates different folders which contain the same documents but have different revisions. To distinguish the revision of the folder I have been using the folder's name; so I might have a folder titled "R1" and another "A1". Another part of my code will compare the folder names and decide which is the latest revision by comparing values I have assigned to each of the possible revisions. Unfortunately, the user may change the folder name, in which case this method breaks down.
My next approach will be to determine the revision of the folder by opening a document within the folder and searching for the value of the cc named "Status", which holds the revision. In this way, the code will store the folder name and revision in arrays. The latest revised folder will be determined using these arrays.
Does this sound like an ok way of doing things? Or is there a more obvious simpler way? I am basically trying to allow the user to rename the folder if necessary, but still have the proper latest revision available each time.
Thanks,
Joe