繁体   English   中英

autohotkey数组为null…如何检查数组是否为null / empty?

[英]autohotkey array null… how do you check if the array is null/empty?

Autohotkey是一个真正的难题,在C#中,这种简单的操作很容易,但是我无法使其与Autohotkey .ahk文件一起使用。

ListOfVal:=Arrays() ; Or ListOfVal:=[] | this creates the array <---comment

我已经尝试过了...

if ListOfVal=null                                  
    MsgBox, "testing"

;Ive tried all these too...

;if ListOfVal==null

;if ListOfVal:=null 

;if !ListOfVal

;if ListOfVal.MaxIndex()<1        

;if ListOfVal.MaxIndex()=-1

你知道我在这里拉头发,请帮忙...

请尝试以下MinMaxIndexLengthCount之一

IsObject

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM