咨詢內(nèi)容:下面這個(gè)自定義函數(shù)未通過請問問題出在哪里。。。謝謝。。。 Function DFTczzfcwz(Formula,dczc,dczf,cxcs) '系統(tǒng)會(huì)在逐K線模式解釋公式時(shí)的每個(gè)周期都會(huì)調(diào)用此函數(shù)一遍,因此設(shè)計(jì)時(shí)應(yīng)該注重程序的執(zhí)行效率,不要重復(fù)的執(zhí)行一些沒必要的代碼 cd = 0 for wz = 1 to StrLen(dczc) if STRMID(dczc,wz,StrLen(dczf)) = dczf Then begin cd = cd + 1 If cd = cxcs Then begin cxwz = wz Exit for End Else Begin '到這一句未通過!編譯器錯(cuò)誤1024 缺少語句 cxwz = 0 End End Next DFTczzfcwz = cxwz End Function