Jump to content
Sign in to follow this  
Klexen

Dynamic array

Recommended Posts

Klexen

I'm trying to get this to be dynamic...

I want to replace the three lines of code "$ltext[0] = etc...

With something that basically gets the text of however many items are in the listbox and add them to the array. Because I don't know how large the array is going to be...

Hard to explain what I'm trying to do, hopefully you understand by looking at the code I've written.

$arraycount = _GUICtrlListView_GetItemCount($hlist)
    $find = InputBox("Testing","Test")
    Local $ltext[$arraycount]
    $ltext[0] = _GUICtrlListView_GetItemText($hlist,0)
    $ltext[1] = _GUICtrlListView_GetItemText($hlist,1)
    $ltext[2] = _GUICtrlListView_GetItemText($hlist,2)
    $result = _ArraySearch($ltext,$find,0,0,0,1)    
    _GUICtrlListView_ClickItem($hlist, $result,"left", False, 2)oÝ÷ Øׯz¹¢Ò«yØ­¢ëZºÚ"µÍIÌÍÚÝHÛÛÛÙ][J   ÌÍÚÛ    ][ÝÉ][ÝË    ][ÝÔÞÓÝY]ÌÌI][ÝÊBRYÜ[Ñ^]ÛÜ ][ÝÑZ[YÈÙ][HÈÝÛÛÛ][ÝÊBIÌÍØ^XÛÝ[HÑÕRPÝÝY]×ÑÙ]][PÛÝ[
    ÌÍÚÝ
BIÌÍÙ[H[]Þ
    ][ÝÕÝ[É][ÝË   ][ÝÕÝ    ][ÝÊBSØØ[   ÌÍÛ^ÉÌÍØ^XÛÝ[BIÌÍÚHHQÂIÌÍÛ^ÉÌÍÚWHHÑÕRPÝÝY]×ÑÙ]][U^
    ÌÍÚÝ    ÌÍÚJBIÌÍÚHH   ÌÍÚH
ÈBU[[  ÌÍÚHH    ÌÍØ^XÛÝ[IÌÍÜÝ[HÐ^TÙXÚ
    ÌÍÛ^ ÌÍÙ[JBBWÑÕRPÝÝY]×ÐÛXÚÒ][J   ÌÍÚÝ    ÌÍÜÝ[   ][ÝÛY ][ÝË[ÙK
Edited by Klexen

Share this post


Link to post
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
Sign in to follow this  

×