Search found 2 matches

by sikongshan
10 Jan 2020, 02:21
Forum: 请求帮助
Topic: AHk怎么把变量值做变量用?
Replies: 1
Views: 3641

Re: AHk怎么把变量值做变量用?

如果仅仅是变量值用作变量,这样就可以

Code: Select all

i := 1
IF(i<24)
{
	sheet%i% := i+100
	i++
}
b:=1
MsgBox % sheet1
MsgBox % sheet%b%

但是你的代码中,不是简单的用作变量,而是试图用作一个关联数组,这时候需要定义一下

Code: Select all

i := 1
IF(i<24)
{ 
	sheet%i%:={}
	sheet%i%.Visible := 1000
	i++
}

MsgBox % sheet1.visible
另外,我看你下面用了++,是不是想要循环,那个if并没有起到循环的作用
by sikongshan
27 Dec 2019, 21:04
Forum: Tips and Tricks
Topic: jeeswg's object classes tutorial
Replies: 12
Views: 10256

Re: jeeswg's object classes tutorial

Thank you very much,The tutorial is very useful.

Go to advanced search