使用PB未公开的INDIRECT关键字
来源:互联网 发布:重生之网络巨头txt下载 编辑:程序博客网 时间:2024/06/10 00:32
作者:Réal Gagnon
由 Ericwoo 在 六月 07, 2008 15:44 发贴 | 永久链接 | 删除 | 回复这个
- 使用PB未公开的INDIRECT关键字
- 使用PB未公开的INDIRECT关键字,定义自己的属性Property
- PB未公开的特性:用indirect申明对象属性
- PB未公开的特性:用indirect申明对象属性
- PB绝对有用的未公开函数
- PB绝对有用的未公开函数
- PB绝对有用的未公开函数
- PB绝对有用的未公开函数
- 關於PB文檔中沒有公佈的INDIRECT關鍵字
- 【引用】 PB绝对有用的未公开函数
- 关于未公开函数ZwQuerySystemInformation的使用
- 使用未公开关键字在 C# 中导入外部 printf 等参数数量可变函数
- 两个未公开的ACCESS方法的使用技巧
- PB的关键字Create
- 未公开的Windows网络工具
- 未公开的Windows网络工具
- 未公开的Windows网络工具
- 未公开的Windows网络工具
- MySQL数据库增加用户权限GRANT/INSERT INTO user VALUES/FLUSH PRIVILEGES
- python+PyQt4写的一个简单的计算器
- NP问题
- 从职位的角度来理解软件接口
- Wsizer: 用键盘控制窗口
- 使用PB未公开的INDIRECT关键字
- 关于最近项目中一个DIV按钮的问题的解决
- uclinux-2008R1.5-RC3(bf561)到VDSP5的移植(71):l1_data_sram_init的疑惑
- NetBeans中设置@author
- JSF自定义组件之六 总结
- UBUNTU 8软件源
- SenseLock开发手记(三)
- 自动化测试工具无法读取PB的sle.text,解决方案
- Unity Application Block--通过配置文件读取映射
INDIRECT declaration statement enables a function to be called indirectly by simply setting an instance or shared variable. With a simple INDIRECTed variable, we need to provide 2 functions. One to set the value and one to retrieve the value.
Here some notes from Jeremy Lakeman (thanks!).
string *name the name of the variable (used with INDIRECT array)
any *value the value being assigned
long[] *args the array of array dimensions (used with INDIRECT array)
INDIRECT keyword when used with an array is a little bit more tricky, we need to define 6 functions.
In the following example, the INDIRECT array converts its member to uppercase. A userobject is used to hold our INDIRECT array and the 6 required functions.
[EXPORT .sru file, save into a file _n_cst_indirect.sru_ and then IMPORT it in PB]
The same technique but this time, our array type is long.
Array with multi-dimensions needs functions with different signatures :