如何创建带有参数的显示或类似方法?
How to create a display,or similar, method with paramater?
在我的 myForm 中调用 tableMY displayMethod_fieldA.
在 myForm 中,我在 DateEdit 中插入了一些日期,我想在 table 中使用输入的值。如果我创建一个 displayMethod
白参数我有一个错误。
看起来像这段代码我收到错误:
display myEDTField displayMethod_fieldA (date _dateFromForm)
{
tableMY table;
select table
where table.item == this.item
&& table.dateTable == _dateFromForm;
return table.valueFieldA;
}
我有一个类似这样的错误:
The display method has an incorrect parameter profile.
有另一种方法可以通过传递参数的方法在Grid中显示或设置我的StrinEdit中的值吗?
在网络上我看到了方法 modifier
modifierMothod ,但我需要更多解释。不知道这个方法对不对
显示方法不是为这个特性设计的。
display method for a table, form, report, or report design does not
have any parameters. For example: display Amount amount()
A display method for a form data source does require a parameter. You
use the
parameter to specify a table buffer. The type of the table buffer has
to match the type of the table in the form data source.
https://msdn.microsoft.com/en-us/library/aa595058.aspx
您可以使用 edit 方法创建所需的行为(并将字段设置为 AllowEdit(false) 或 enabled(false)。
在我的 myForm 中调用 tableMY displayMethod_fieldA.
在 myForm 中,我在 DateEdit 中插入了一些日期,我想在 table 中使用输入的值。如果我创建一个 displayMethod
白参数我有一个错误。
看起来像这段代码我收到错误:
display myEDTField displayMethod_fieldA (date _dateFromForm)
{
tableMY table;
select table
where table.item == this.item
&& table.dateTable == _dateFromForm;
return table.valueFieldA;
}
我有一个类似这样的错误:
The display method has an incorrect parameter profile.
有另一种方法可以通过传递参数的方法在Grid中显示或设置我的StrinEdit中的值吗?
在网络上我看到了方法 modifier
modifierMothod ,但我需要更多解释。不知道这个方法对不对
显示方法不是为这个特性设计的。
display method for a table, form, report, or report design does not have any parameters. For example: display Amount amount()
A display method for a form data source does require a parameter. You use the parameter to specify a table buffer. The type of the table buffer has to match the type of the table in the form data source.
https://msdn.microsoft.com/en-us/library/aa595058.aspx
您可以使用 edit 方法创建所需的行为(并将字段设置为 AllowEdit(false) 或 enabled(false)。