; [ 2] Unexpected struct errors - - - - - - - - - - - - - - - - - - - - - - - - - Local $T = DllStructCreate Local $aStr[] = [$T("int x;int y"), $T("int x;int y")] $aStr[0].x = 1 $aStr[0].y = 2 $aStr[1].x = 3 $aStr[1].y = 4 ; just some random code: With $aStr[0] .y += .x - $aStr[1].x / .y ^ 2 ; $aStr[1] is a valid reference ConsoleWrite("+> Value of x = " & .x & @LF) ; validate value of $aStr[0].x ; now $aStr[.x] should be = $aStr[1] inside this With, but: # .y += .x - $aStr[.x].x / .y ^ 2 ; ==> Variable subscript badly formatted.: ; .y += .x - $aStr[.x].x / .y ^ 2 ; .y += .x - $aStr[.x].x / .y ^ ^ ERROR # .y += .x + ((Sqrt(Abs($aStr[1].x^2+$aStr[.x].y^2))-$aStr[1].x)/.y)*.y ; ==> Unbalanced brackets in expression.: ; .y += .x + ((Sqrt(Abs($aStr[1].x^2+$aStr[.x].y^2))-$aStr[1].x)/.y)*.y ; .y += .x + ((Sqrt(Abs($aStr[1].x^2+$aStr[^ ERROR EndWith # Function($aStr[$aStr[0].x].y) ; ==> Unbalanced brackets in expression.: ; Function($aStr[$aStr[0].x].y) ; Function($aStr[^ ERROR Func Function($nP) Return Default EndFunc