any
有些消息的参数声明为any.这表示该参数是一种可变的类型(你可以以整型,字符串,用户自定义或其他的类型来传递).
这有一个这样的例子:
public declare function sendmessage lib "user32" alias "sendmessagea" byval hwnd as long, byval wmsg as long, byval wparam as long, lparam as any) as long
lparam 声明为any并按引用(byref)传递.
这里是在这个函数中如果lparam是不同类型的值时应遵循的规则:
如果该值是 传递形式
numeric byval(as long,or as any)
null byval(as long,or as any)
string byref(as string,or as any)
type byref(as...[ 查看全文 ]