如何在應用程式載入時更新文字框我建立了一個用於從 SQL 載入資料的應用程式。這是兩個用於開始和結束資料時間選擇的文字方塊。現在我想在應用程式運行後使用當前時間作為結束時間。但我無法實作如下圖。能展示一下嗎
OnModuleLoad({},
s = Format( today(), "Format Pattern", "<YYYY><-><MM><-><DL><DD>" );
txt_endTime<<SET text=""></SET></DD></DL></MM></YYYY><LINGO-LABS id="lingo-labs-791307" slang="en-US" mode="CREATE"><LINGO-LABEL>視窗</LINGO-LABEL></LINGO-LABS>回覆:如何在應用程式載入時更新文字框我不使用應用程式生成器,但我認為您可能必須將其移至 OnModuleLoad 之外

或者也許在 onmoduleload 內部建立字串並將其設定在外部(創建物件之後)

回覆:如何在應用程式載入時更新文字框同意@jthi這裡 - OnModuleLoad 基本上是一個偽函數,用於在創建時從另一個模組接收參數 - 對於創建諸如實例化其他模組的啟動器之類的東西很有用。
Below are the default arguments included in a Module script - anything that uses the symbols created by the Module has to be placed after the thisModuleInstance << Create Objects; line:
// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);
thisModuleInstance << Create Objects;
// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").
回覆:如何在應用程式載入時更新文字框謝謝!你的建議是對的。
回覆:如何在應用程式載入時更新文字框知道了。非常感謝大家!