Flipper Posted September 8, 2022 Posted September 8, 2022 I cannot configure _ArrayFindAll to give me some results. My Array looks like this.... My search string.... yet.... 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
Flipper Posted September 8, 2022 Author Posted September 8, 2022 EDIT. Beg pardon. I'm searching the Col0 (Artist) to give me a list of albums (col1) Sorry, I should have said...
Subz Posted September 8, 2022 Posted September 8, 2022 Last parameter should be false, otherwise it's searching the row rather than the column.
Flipper Posted September 9, 2022 Author Posted September 9, 2022 THANKS! <Facepalm>! Goes back & reads the help file again. Yep. That's exactly what it says. Stupid brain read it wrong. I'll have another go!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now