本帖最后由 福仔 于 2023-8-11 14:18 编辑
子程序1 (取现行时间 ()) 调试输出 (是否为空 (参数 )) 修改可空参数是否为空 (参数, 取反 (是否为空 (参数 )), #日期时间型 )调试输出 (是否为空 (参数 )) |
修改可空参数是否为空 | | | |
参数 | 通用型 | | | | 是否可空 | 逻辑型 | | | | 参数类型 | 整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | ebp | 整数型 | | | pArg | 整数型 | | | pStack | 整数型 | | | i | 整数型 | | | pEmpty | 整数型 | | | offset | 整数型 | | |
ebp = 0 pArg = 取指针_通用型 (参数 )置入代码 ({ 139, 69, 0, 137, 69, 252 }) 变量循环首 (8, 1000, 4, i )  判断 (参数类型 = #整数型 或 参数类型 = #字节型 或 参数类型 = #短整数型 或 参数类型 = #小数型 或 参数类型 = #逻辑型 或 参数类型 = #子程序指针型 )   pStack = ebp + i  判断 (参数类型 = #文本型 或 参数类型 = #字节集型 )  pStack = 指针到整数 (ebp + i )  判断 (参数类型 = #长整数型 或 参数类型 = #双精度小数型 或 参数类型 = #日期时间型 )   pStack = ebp + i   offset = 4    输出调试文本 (“不支持传递这种数据类型”) 暂停 () 返回 ()   如果真 (pStack = pArg )   pEmpty = ebp + i + 4 + offset  跳出循环 ()  变量循环尾 () 如果真 (pEmpty ≠ 0 ) __set (pEmpty, 0, 选择 (是否可空, 0, 1 )) 置入代码 ({ 139, 69, 8, 201, 194, 4, 0 })返回 (0 )|
__set | 整数型 | | |
lpAddr | 整数型 | | | | offset | 整数型 | | | | value | 整数型 | | | | 置入代码 ({ 139, 93, 8, 139, 77, 12, 139, 4, 25, 139, 85, 16, 137, 20, 25, 201, 194, 12, 0 }) 返回 (0 )
没法做到更简单的, 只能在调用的时候传递参数是什么类型了, 自定义数据类型可以指定是文本型或者字节集型
刚刚问答区看到一个说dll无法加载的问题, 然后就推荐我的 https://bbs.125.la/forum.php?mod=viewthread&tid=14748469 这个帖子
然后看到楼下有人问怎么修改可空参数的可空
闲着没事, 写个子程序处理一下....
这里复制的通用型用不了, 大家可以去找个有通用型的源码复制一下
或者利用易语言助手的自动变量弄一个通用型出来, 比如 a=取字节集数据() 敲回车就能得到一个通用型变量, 自己复制一下这个变量替换到源码参数的位置就行了
修改可空参数是否为空.e
(6.41 KB, 下载次数: 18)
|