autohotkey数组null ...如何检查数组是否为空/空?

问题描述 投票:0回答:1

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

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

arrays null autohotkey
1个回答
1
投票

尝试下列其中一个MinMaxIndexLengthCount

或者IsObject

© www.soinside.com 2019 - 2024. All rights reserved.