有没有办法确定OpenArgs包含多少变量? [英] Is there a way to determine how many variables does OpenArgs contain?

查看:128
本文介绍了有没有办法确定OpenArgs包含多少变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这基本上是我在标题中的问题

如果有人知道..

Hi, that is basically my question there in the title
If someone knows..

推荐答案

表单的OpenArgs属性/ report只是一个字符串,其值由(通常)使用DoCmd.OpenForm / OpenReport命令设置。它可以包含字符串中的多个变量,如果这就是你放在那里的那些变量。解析这些变量可以使用自定义函数完成,甚至可以使用Split()命令。


如果您需要任何进一步的帮助,您需要更详细地解答您的问题。
The OpenArgs property of a form/report is just a string which value is set by (usually) using a DoCmd.OpenForm/OpenReport command. It can contain multiple variables in the string, if that''s what you place there. Parsing those variables out can be done with custom functions, or maybe even the Split() command.

You''ll need to be a lot more detailed with your questions if you want any further help.


感谢您的回复,Megalog

对不起,如果我不清楚,但我不知道OpenArgs是如何工作的,我知道如何使用它。我的问题是,假设我已经使用它并传递了几个变量,一旦我捕获这个OpenArgs字符串 - 是否有办法知道最初传递了多少变量(= openargs包含多少变量)。 br />
这并不重要,我只是想知道它是否可以完成......
Thanks for replying, Megalog
Sorry if i wasn''t clear, but i wasn''t asking how the OpenArgs works, i know how to use it. My question was, presuming i already used it and passed several variables, once i ''catch'' this OpenArgs string - is there a way to know how many variables were passed in it originally (=how many variables does openargs contain).
It''s not that important, i just wanted to know if it can be done...


OpenArgs是一个临时变量,就我而言知道,只有在该窗体打开时才存储在内存中。它没有历史,等等。你可以玩当时那里的任何数据,就是这样。因此,任何时候只有一个变量。
OpenArgs is a temporary variable, that as far as I know, is only stored in memory while that form is open. There is no history to it, etc. You''re able to play with whatever data is currently in there at that moment, that''s it. So, there is only 1 variable at any time.


这篇关于有没有办法确定OpenArgs包含多少变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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