home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2002 April / VPR0204A.ISO / OLS / GREP109 / grep109.lzh / searchEx / history.mac < prev    next >
Text File  |  2001-06-15  |  579b  |  16 lines

  1. //検索・置換履歴の作成
  2. $ini = macrodir + "\\searchEx\\searchEx.ini";
  3. if( getininum($ini,"SEARCH","SearchOption") == 0 )$section = "SearchHistory";
  4. else if( getininum($ini,"SEARCH","SearchOption") == 1 )$section = "ReplaceHistory";
  5. else if( getininum($ini,"SEARCH","SearchOption") == 2 )$section = "FolderHistory";
  6. $string = getinistr($ini,"SEARCH","tmp");
  7. $tmp1 = $string;
  8. ##i = 0;
  9. while( ##i < 10 ){
  10.     if( $string == $tmp2)break;
  11.     $tmp2 = getinistr($ini,$section,str(##i));
  12.     writeinistr $ini,$section,str(##i),"\"" + $tmp1 +"\"";
  13.     $tmp1 = $tmp2;
  14.     ##i = ##i + 1;
  15. }
  16.