Search the Community
Showing results for tags 'ENUM'.
-
Am I doing something wrong, or does Au3Stripper not process Global Enum's? Original #AutoIt3Wrapper_Run_Au3Stripper=y #Au3Stripper_Parameters=/pe #AutoIt3Wrapper_Au3stripper_OnError=S Global Enum $GlobalEnumVar Global Const $GlobalConstVar = 0 Main() Func Main() ConsoleWrite( "AutoItVersion: " & @AutoItVersion & @CRLF ) ConsoleWrite( "$GlobalEnumVar: " & $GlobalEnumVar & @CRLF ) ConsoleWrite( "$GlobalConstVar: " & $GlobalConstVar & @CRLF ) EndFunc Build >Running Au3Stripper (21.316.1639.0) from:C:\Progs\Apps\AutoIt\SciTE\Au3Stripper cmdline: - 0.03 Iteration 1 Strip Functions result: Output 8 lines, stripped 0 Func lines and 8 Commentlines - 0.03 Iteration 2 Strip Variables result: Output 8 lines and stripped 0 lines - 0.03 Iteration 3 Strip Variables result: Output 7 lines and stripped 1 lines - 0.03 Iteration 4 Strip Variables result: Output 7 lines and stripped 0 lines +> Source 16 lines 360 Characters. +> Stripped 1 Func/Var lines and 8 comment lines, Total 132 Characters. +> Saved 56% lines 36% Characters. +> Au3Stripper v21.316.1639.0 finished created:C:\HotRod\AU3\TEST\Au3Stripper\Au3Stripper_stripped.au3 +>04:23:07 Au3Stripper ended.rc:0 Stripped Global Enum $GlobalEnumVar Main() Func Main() ConsoleWrite( "AutoItVersion: " & @AutoItVersion & @CRLF ) ConsoleWrite( "$GlobalEnumVar: " & $GlobalEnumVar & @CRLF ) ConsoleWrite( "$GlobalConstVar: " & 0 & @CRLF ) EndFunc It replaced $GlobalConstVar with it's value. But it left $GlobalEnumVar.
-
Hi Forum, In this doc letter "e" reference a enumerator to variables. In second example of the function ENUM your use is very clear... But, I have two or more listviews and I think apropriate use a enumerator, is clear too... How is the best practice to call this variables? Explain: If have ONE ListView (or table) is easy to understand: Global Enum $eID, $eNAME, $eADDRESS Global $aPerson[3][3] ConsoleWrite($aPerson[1][$eID] & @LF) ConsoleWrite($aPerson[1][$eNAME] & @LF) ConsoleWrite($aPerson[1][$eADDRESS] & @LF) But, if have more than one ListView (or table or anything...), that is my doubt, how is the best practice to name/call this? Global Enum $e0_ID, $e0_NAME, $e0_ADDRESS Global Enum $e1_ID, $e1_CAR, $e1_CAR_COLOR Global $aPerson[3][3] Global $aCar[3][3] ConsoleWrite($aPerson[1][$e0_ID] & @LF) ConsoleWrite($aPerson[1][$e0_NAME] & @LF) ConsoleWrite($aPerson[1][$e0_ADDRESS] & @LF) ConsoleWrite($aCar[1][$e1_ID] & @LF) ConsoleWrite($aCar[1][$e1_CAR] & @LF) ConsoleWrite($aCar[1][$e1_CAR_COLOR] & @LF) Thanks, Detefon