Jump to content

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


Flipper
 Share

Recommended Posts

I cannot configure _ArrayFindAll to give me some results.

 

My Array looks like this....

image.thumb.png.207419718adc5550f4a01d3822c2f20f.png

My search string....

image.png.645c47348546f31eaba4bf34f103be3f.png

yet....

image.png.8d3989f752d3d5ce9c544f349c7a8df6.png

 

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.
    EndIf

    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!

Pete

 

 

 

 

image.png

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
 Share

  • Recently Browsing   0 members

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