Jump to content

THUD! Ow! THUD! Ow! THUD! Ow! What am I doing wrong?!


Recommended Posts

I cannot configure _ArrayFindAll to give me some results.


My Array looks like this....


My search string....





Func _SearchMusic()
    Global $aRetArray

    _FileReadToArray($sFilePath, $aRetArray, $FRTA_NOCOUNT + $FRTA_ENTIRESPLIT, "***")

¬†¬† ¬†_ArrayDisplay($aRetArray, "2D array - count", Default, ūüėé

    If Not _FileReadToArray($sFilePath, $aRetArray, $FRTA_NOCOUNT + $FRTA_ENTIRESPLIT, "***") Then
        GUICtrlSetData($myedit, $sFilePath)
        MsgBox($MB_SYSTEMMODAL, "", "There was an error reading the file. @error: " & @error) ; An error occurred reading the current script file.

    GUICtrlSetData($myedit, GUICtrlRead($SEARCH_STRING))
    MsgBox(262144, 'Debug line ~' & @ScriptLineNumber, 'GUICtrlRead($SEARCH_STRING)' & @LF & GUICtrlRead($SEARCH_STRING)) ;### Debug MSGBOX

    $aResult = _ArrayFindAll($aRetArray, GUICtrlRead($SEARCH_STRING),0,Default,Default,1,0,True)

    $i = 0
    $String1 = ""
    $String2 = ""

    Local $iRows = UBound($aResult, $UBOUND_ROWS)
    MsgBox(262144, 'Debug line ~' & @ScriptLineNumber, 'IROWS:' & @LF & $iRows) ;### Debug MSGBOX

----- Thanks for any help, I'm continuing to bang my head against a wall!







Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...