Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Creating variables in a For function

$
0
0
Hey guys, i'm trying to creating 7 variables in a "For" function, to not declare one by one.
But i get errors, here is the code:
Local $i = 0 Local $bday = _DateAdd("D", -$i, _NowCalcDate()) ; For $i = 0 To 6     Local $bNewDate[$i] = 0 Next ;Options Local $aArray[7] = [$bNewDate[6], $bNewDate[5], $bNewDate[4], $bNewDate[3], $bNewDate[2], $bNewDate[1], $bNewDate[0]]

Are this code stupid or am i stupid for don't see the error hahaha

Sorry i'm noob as a Autoit programmer  >_<


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>