char_list_cmpDetermines if two lists are equal. Syntaxint char_list_cmp(list-name, list-name) list list-name DescriptionReturns true if two lists are different and false if they are the same.
ExampleThis example shows how to determine if a user has changed a list. After saving the list to "old_list," open it in an editor. When the user closes the editor, save the file to "new_list." Finally, compare "old_list" to "new_list."
{
list old_list;
list new_list;
old_list = list_open("hitlist.txt",1000,"List of Structure Numbers");
new_list = edit_list(old_list,0,0,70,20,7,true); /*edit list/*
if (char_list_cmp(old_list,new_list)) /*true if user changed old list*/
list_file(new_list,"old_list.txt","a");
}
Updated 19 May 1999. Copyright DataAspects Corp. 1998-1999 |