return values of occurrences
Author: dylan.huart@gmail.com (Dylan)
Good afternoon, I try to return different values of my database, Thus : in data base : num_folder : 001 001 002 003 name_pdf : pdf1 pdf2 pdf3 pdf4 the folder 001 contain pdf1 and pdf2 the folder 002 contain pdf3 and the folder 003 contain pdf4 Thus I try to return e.g. the pdf of the folder 001 clear/e "entity_of_pdf" NUM_FOLDER.entity_of_pdf/init = NUM_FOLDER NAME_PDF.entity_of_pdf/init = NAME_PDF retrieve/e "entity_of_pdf" $occ_num$ = 1 While ($occ_num$ > $curocc(NUM_FOLDER.entity_of_pdf)) setocc "CINOMPJ", $occ_num$ if($status <0) $occ_num$ = -1 EndIf if($occ_num$ != -1) Putitem $lst_pdf$,-1,NAME_PDF.entity_of_pdf $occ_num$ = $occ_num$ + 1 EndIf EndWhile But $occ_num$ is always more big than $curocc(NUM_FOLDER.entity_of_pdf) idea ?