Find duplicate cases in input dictionary
Posted: May 24th, 2023, 8:14 am
I am using an External dictionary to fill my ID items and have protected 3 out of 4 ID items, 1 is unprotected for loadcase to fill rest of the dictionary item. If we enter in unprotected field (which is unique) function should check if this number used before or not. If the number is already used then an errmg should appear. Please explain the process to use the find function or any function which can create condition for reflection of error message before system generated msg appears.Gregory Martin wrote: ↑May 4th, 2017, 7:51 am If using 7.0 (which you have to for keylist), you can also use the find function on the input dictionary. Construct the potential key as a string, and then do something like this:
if find(INPUT_DICT,=,keyString) then
errmsg("You've already entered a case with these IDs");
endif;