Custom Query (3927 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (394 - 396 of 3927)

Ticket Resolution Summary Owner Reporter
#3593 Rejected IsFunc() - check if function exist by string mLipok
Description

IsFunc() should have feautre to check if string is reperesenting FunctionName in function list.

This feature is very much needed to validate user function parameters.

In this following example only third test should fail but second should display message.

_Test(_msg, 1)
_Test("_msg", 2)
_Test("Fake_msg", 3)

Func _Test($sFunction, $iTest)
	If IsFunc($sFunction) Then $sFunction($iTest)
EndFunc   ;==>_Test1

Func _Msg($iTest)
	MsgBox(0, "Test", $iTest)
EndFunc   ;==>_Msg

Remarks: I think that, "Return values" should not need to be changed.

This is even more necessary if user want to use external tools to obfuscate code like Au3Stripper.

#3592 Duplicate _ArrayAdd doesn't work labichea
Description

_ArrayAdd adds blank lines and not the content.

Check the first example in the Help of _ArrayAdd. Only blank lines have been added.

#include <Array.au3>
#include <MsgBoxConstants.au3>

Local $aArray_Base[2] = ["Org Item 0", "Org item 1"]
_ArrayDisplay($aArray_Base, "1D - Base array")

; Add a single item
Local $aArray = $aArray_Base
Local $sSingleFill = "New Item 2"
_ArrayAdd($aArray, $sSingleFill)
_ArrayDisplay($aArray, "1D - Single")

; Add a delimited string - each item adds new element
$aArray = $aArray_Base
Local $sFill = ""
For $i = 1 To 5
    $sFill &= "New Item " & $i + 1 & "|"
Next
$sFill = StringTrimRight($sFill, 1)
MsgBox($MB_SYSTEMMODAL, "Delimited string to add", $sFill)
_ArrayAdd($aArray, $sFill)
_ArrayDisplay($aArray, "1D - Delim string")

; Add a 1D array - each element adds new element
$aArray = $aArray_Base
Local $aFill[5]
For $i = 0 To 4
    $aFill[$i] = "New Item " & $i + 2
Next
_ArrayDisplay($aFill, "Array to add")
_ArrayAdd($aArray, $aFill)
_ArrayDisplay($aArray, "1D - 1D array")
#3591 No Bug Error in the RegExp omash@…
Description

It is not working:

$text = "192.168.0.1"
$Pattern = "(?(^\d{1,3}\.)((\d{1,3}\.){3}\d{1,3})|(\w+-){5}(\w+))"
$result = StringRegExp ($text, $Pattern, 3)
_ArrayDisplay ($result)
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.