如何在应用程序加载时更新文本框我构建了一个应用程序,用于从 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").
回复:如何在应用程序加载时更新文本框谢谢!你的建议很正确。
回复:如何在应用程序加载时更新文本框明白了。非常感谢大家!