>Why the following syntax not working?
>
packindex('table1')
>proc packindex
>lparameter cfile
>select cfile
>pack
>reindex
>endproc
>Thank's in advance
One more thing: for safety reasons, after changing to another work area, your functions should usually go back to the previous area. Like this:
packindex('table1')
proc packindex
lparameter cfile
local lnOldArea
lnOldArea = select()
select (cfile)
pack
reindex
select (lnOldArea)
endproc
Also, I may be wrong, but I believe that if you do a PACK, a REINDEX is no longer necessary.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)