在 VFP it方法中指定默认路径:_photopath=fullpath("") wsourcetype=7 wsource=_photopath+"*.JPG"在 ick 方法中程序如下:for icount =1 to stcount if lected(icount) _cpicfile = alltrim( st(icount)) exit endifendfor IF "[" $_cpicfile or "\" $_cpicfile mand4.enabled=.f. mand2.enabled=.f.retuelse mand4.enabled=.t. mand2.enabled=.t.ENDIFcExten=ALLTR(substr(_cpicfile,rat(".",_cpicfile)+1))_filepath=locfile(_cpicfile,cExten)cPathfile=ALLTR(substr(_filepath,1,rat("\",_filepath)))_photopath=cPathfile用以上方法得到的是当前路径,但是总是有一个对话框出现,要重选一次,显得画蛇添足,多此一举.如果不用此方法,取不到当前的路径,而取得的是当前默认路径.请教如何取得当前的相对路径?谢谢!