2017-05-17 56 views
0

你能幫我解決這個問題嗎?見下面的描述。gmlib問題 - 搜索方向不起作用

@author澤維爾·馬丁內斯(cadetill) @version 1.5.4

Projekt的MegaDemo

點擊按鈕搜索方向沒有後發生的事情。在單元GMDirection

編程週期中程序執行:

ExecuteScript( 'GetDirections',則params);重複 TGMGenFunc.ProcessMessages;直到(GetIntegerField(DirectionsForm,DirectionsFormResponse)= 1); GetRetournedData;!

+0

歡迎堆棧溢出。請閱讀[指導方針](https://stackoverflow.com/help/mcve)以創建最小,完整和可驗證的問題。 – Toby

回答

0

我暫時解決了GMMap.pas單位這一問題

function TGMObjects.ExecuteScript(NameFunct, Params: string): Boolean; 
begin 
    Result := False; 

    Map.FDocLoaded := true; <<- new line 

    if (csDesigning in ComponentState) or not Assigned(FMap) or 
     not Map.Active or not Map.FDocLoaded then Exit; 

    Result := FMap.ExecuteScript(NameFunct, Params); 
end; 
+0

謝謝!有用! – LNC