
Xerix
Active Members-
Posts
44 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by Xerix
-
Sorry for the delai. For me it's a bug, but i'm not an Autoit expert. Could it be useful to add this to the bugtrack or not ? Thank you.
-
It's still a little strange that Fileopen fail on a hidden file in mode 2. i will use the solution with FileSetAttrib
-
Ok, thank you
-
Ok, thanks jdelaney. But if i do that on several files, all of them are not necessarily Hidden. And here, they will become hidden even if they were not hidden.
-
No idea ? Thank you
-
Hello, I try to open a hidden file in write mode but this doesn't seem to work. @error = -1 $open = FileOpen("d:\test.txt",2) MsgBox(4096,"",$open) It works in read mode (0) or Write mode (append to end of file) (1) but not in Write mode (erase previous contents) (2) Is it a normal work or a bug ? Thank you Eric
-
Ok, i have understood Thank you
-
Hi It's perhaps because my langage is not english but i don't understand what is MAPS. Is someone can explain me what is it ? Thank you Eric
-
Thank you Danyfirex Yes it works, we can also use ROUND but that I wanted to know is if it was normal or if it was a bug. Jchd Thank you for the explanation
-
Hello In a program, I have to do the addition of several numbers. But instead of getting 32.04, I get 32.0400000000001 I can reduce this result to 2 digits after the decimal point but why this result, while there are always 2 digits after the decimal point ? I do not know from where comes the problem, so I've put all the numbers in addition to test. Thank you $cal = 0.19+0.11+0.4+0.35+0.43+0.27+1.22+0.07+0.04+0.2+6.8+0.04+0.03+0.24+0.62+0.75+0.77+0.18+0.77+0.1+1.35+1.05+0.01+0.01+2.46+5.94+0.19+0.04+2.27+0.02+0.03+0.03+0.03+0.03+0.02+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.02+0.03+0.03+0.03+0.03+0.03+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.04+0.03+0.03+0.03+0.03+0.03+0.02+0.02+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.03+0.32+0.17+1.35+0.45+1.05 MsgBox(4096,"",$cal)
-
Thank you Melba, I will look at your UDF
-
Thank you Kilmatead, i will look this
-
Relax Melba23, do not drink as much coffee Just kidding. The prefix can change. The idea is to sort in first the text and after the number Example : A 1 A 2.5 A 14 A 23 AB 3 B 4.5 C 2 ...
-
Exact, my example is not complete. It must be something like : #include <array.au3> local $array[4] = ["A "& 14,"A "& 23,"A "& 3,"A "& 2.50] _ArraySort($array) _ArrayDisplay($array) And i would like to have : A 2.5 A 3 A 14 A 23
-
Hello, I want to sort numbers in an array. for example : #include <array.au3> local $array[4] = ["14","23","3","2.50"] _ArraySort($array) _ArrayDisplay($array) The result is 14 2.50 23 3 Is it normal ? Is there a way to have the correct sort ? 2.50 3 14 23 Thank you.
-
Ok, I think, having understood the trick Thank you Melba23
-
Hello I would like to add a Tip on a grayyed control. But this doesn't seem to work. Is there a method or options to add a tip in this type of control #include <GUIConstantsEx.au3> GUICreate("My GUI style") ; will create a dialog box that when displayed is centered $button = GUICtrlCreateButton(" GO ", 20, 20) GUICtrlSetState($button, $GUI_DISABLE) GUICtrlSetTip($button, "text") GUISetState(@SW_SHOW) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd Thank you
-
OK, thank you all. As we talked, what would be the code on this example with databases. Thank you
-
Just a small correction. To find the exact number should we not have For $i = 0 To UBound($array) - 1 Rather than For $i = 1 To UBound($array) - 1 And maybe Local $aTemp[UBound($array)][6], $X = 0
-
Thank you BrewManNH So the idea is to transfer all the txt file in an another temporary array then replace this temporary array values in the main array. And indeed it is extremely faster Can you explain in $X += 1 the += I think have already asked the question in another message but I don't know where. Thank you
-
Here's a simple example of what I would like to make The idea is to remove any lines or appears the word doc in the 4th column. Well here is a quick example but the idea is that the doc may be found in any line. Not necessarily as here where the doc are all before the txt. Thanks for your help #include "array.au3" Global $array[5000][6] For $i = 0 To 4500 $array[$i][0] = $i $array[$i][1] = "file" & $i $array[$i][2] = "date" & $i $array[$i][3] = "doc" $array[$i][4] = "name" & $i $array[$i][5] = "color" & $i Next For $i = 4501 To 4999 $array[$i][0] = $i $array[$i][1] = "file" & $i $array[$i][2] = "date" & $i $array[$i][3] = "txt" $array[$i][4] = "name" & $i $array[$i][5] = "color" & $i Next _ArrayDisplay($array) $ext = _ArrayFindAll($array, "doc", 0, 0, 0, 0, 3) For $i = UBound($ext) - 1 To 0 Step -1 _ArrayDelete($array, $ext[$i]) Next _ArrayDisplay($array)
-
Yes this is the case
-
Not so great than that. About 5000 lines (in 2D) Probably, but I don't know how to use databases But I think that an array of 5000 line is not unmanageable.