在公式中设置参数 [英] Setting Parameters in Formulas

查看:92
本文介绍了在公式中设置参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在公式中设置参数?用户输入'ki'(年份的日语单词)会计年度,并根据我想在公式中设置日期参数(bDate)但不让我这样做。有什么建议吗?

How can I set a parameter in a formula?  The user inputs the 'ki'(japanese word for year) fiscal year and based on that I want to set a date parameter (bDate) inside of a formula but its not letting me.  Any suggestions?


local stringvar begFullYear;


local stringvar begFullYear;

..............

..............

..........

..........

tempDateString:= '04 / 01 /'+ begFullYear;
//设置查询的开始日期result
// begDate:= CDate(tempDateString);
{?bDate}:= CDate(tempDateString);

tempDateString := '04/01/' + begFullYear;
// set beginning date for query result
//begDate := CDate(tempDateString);
{?bDate}:=CDate(tempDateString);

但这不起作用。

Eric

推荐答案

你不能设置一个公式中的参数值。您只能在公式中使用参数值。如果您想在记录选择公式中使用参数值,请将公式设置为您想要的参数值,并使用记录选择公式中的公式。
You can't set a parameter value in a formula.  You can only use a parameter's value in a formula.  If you are wanting to use the parameter value in the record selection formula, set the formula to the value you want from the parameter value and use the formula in the record selection formula.


这篇关于在公式中设置参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆