strange code ?

I am busy to explore some code .
The code works perfectly without any problem.
In this part of code I am a bit confused about code ’ gDataRows = cnt

dim s as string
dim letter as string
dim wordLen as integer
dim i, col, letterIndex as integer
dim thirdColStr as string = "B"

#pragma DisableBackgroundTasks

gDataRows = cnt
cnt = cnt - 1 // Now holds UBound
...
...

code : gDataRows = cnt I don’t uinderstand.
gDataRows is a global defined Integer.
But cnt is nowhere defined ?
How can cnt be gDataRow after that code ?
I always thought that the left variable receives the value of the second variable ?
I was expecting a error saying that cnt was not existing !

Regards
Etienne

Is it a parameter of the method?

if you clic at the end of “cnt” the xojo IDE gives you at the bottom left where it has been declared.
you can also right-clic and ask for searching “cnt” in the whole project to see where it comes from.
my bet : a property of a window/class you’re using.

Oeps. Sorry.
Indeed it is a parameter of the method .

Clicking at the end of cnt says ‘Line 0: cnt As Integer’
Line 0 is the Method definition line where it shows cnt as parameter of the method.

Regards

[quote=496323:@Jean-Yves Pochez]if you clic at the end of “cnt” the xojo IDE gives you at the bottom left where it has been declared.
you can also right-clic and ask for searching “cnt” in the whole project to see where it comes from.
my bet : a property of a window/class you’re using.[/quote]
Oh nice tip. I didn’t know this. Thanks.