Modify ↓
Opened 11 years ago
Closed 11 years ago
#2601 closed Bug (No Bug)
Deprecated Dim usage in UDF - BUG ??
Reported by: | mlipok | Owned by: | |
---|---|---|---|
Milestone: | Component: | Standard UDFs | |
Version: | 3.3.11.0 | Severity: | None |
Keywords: | Cc: |
Description
according to:
http://www.autoitscript.com/forum/topic/147658-dim-or-localglobal-to-declare-an-array/
Date.au3
Dim $asTimePart[4] Dim $iTimePart[4]
Sound.au3
Dim $aSndID[4] = [$vTemp, 0, 0, $__SOUNDCONSTANT_SNDID_MARKER] ; create valid Sound ID array for use in UDF
SQLLite.au3
Dim $aResult[($iAllocRows + 1) * $iColumns + 1] Dim $aiCellWidth[UBound($aResult, 2)] Dim $aResult[$iColumns][$iRows + 1] Dim $aResult[$iRows + 1][$iColumns] Dim $aRow[1] Dim $aNames[1]
WinAPIDiag.au3
Dim $__Enum[501][2] = [[0]] Dim $__Enum[501][2] = [[0]]
WinAPIGdi.au3
Dim $__Enum[101][8] = [[0]] Dim $aRamp[256][3] Dim $aTab[1] = [$Tab] Dim $Icon[1] = [$aIcon] Dim $Temp[1] = [0] Dim $Icon[$Count] Dim $Temp[$Count] Dim $aTab[1] = [$Tab]
WinAPILocale.au3
Dim $__Enum[101] = [0] Dim $__Enum[101] = [0] Dim $__Enum[101] = [0]
WinAPIProc.au3
Dim $Prev[1][2] Dim $Prev[$Count][2] Dim $aPrivileges[$Count][2] Dim $Result[$Count + 1][2] = [[$Count]] Dim $__Enum[101][2] = [[0]]
WinAPIRes.au3
Dim $__Enum[101] = [0] Dim $__Enum[101] = [0] Dim $__Enum[101] = [0] Dim $__Enum[101][$__Val[0] + 1] = [[0]]
WinAPIShellEx.au3
Dim $aPaths[1] = [$Path] Dim $sFrom[1] = [$Data] Dim $sTo[1] = [$Data]
WinAPIShPath.au3
Dim $Result[$Ret[2] + 1] = [$Ret[2]]
WinAPISys.au3
Dim $__Enum[101][2] = [[0]] Dim $__Enum[101] = [0] Dim $__Enum[101][2] = [[0]] Dim $__Enum[101][4] = [[0]] Dim $__Enum[101] = [0] Dim $aCtrl[1] = [$Ctrl]
Attachments (0)
Change History (4)
comment:1 Changed 11 years ago by guinness
comment:2 Changed 11 years ago by BrewManNH
As guinness stated, it's not deprecated, it's merely suggested that you don't use it. I also had been under the impression that it had been deprecated, but found out otherwise.
comment:3 Changed 11 years ago by jchd
AFAIK this is the only situation where Dim can't be avoided:
#include <Array.au3> Local $a = 5 _ArrayDisplay(f($a)) Func f(ByRef $v) Dim $v[5] EndFunc
comment:4 Changed 11 years ago by Jon
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Dim isn't deprecated, it has its certain usage though very limited. I will leave this ticket open for others to consider as well.