Sign in to follow this  
Followers 0
maurocav

Found from combo into the same combo ?

3 posts in this topic

Please help me,i need this:

Search from combo

a|b|c|

into csv file

x;y;z;a

d;a;y;z

s;b;k;r

populate the same combo wiht the line found

select 1 line

split line into array

Tank you very much

Share this post


Link to post
Share on other sites



Please help me,i need this:

Search from combo

a|b|c|

into csv file

x;y;z;a

d;a;y;z

s;b;k;r

populate the same combo wiht the line found

select 1 line

split line into array

Tank you very much

GUIctrlSetData ()

Share this post


Link to post
Share on other sites

GUIctrlSetData ()

Thank you Bert ,but i know to here:

#include <GuiConstants.au3>

$data = "string1|string2|string3|string4|Exit"
$sGUI = GUICreate("WinBar App", 100, 20, @DesktopWidth / 2 + 320, @DesktopHeight / 170, BitOR($WS_POPUP, $WS_EX_TOPMOST), $WS_EX_TOOLWINDOW)
$sInput = GUICtrlCreateCombo("", -1, -1, 102, 22)
GUICtrlSetData($sInput, $data)
GUISetState()
WinSetOnTop($sGUI, "", 1)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $sInput
            $sRead = GUICtrlRead($sInput)
If $sRead = "EXIT" Then
Exit
   Else  
   ToDo()
   EndIf 
   EndSwitch
WEnd
Func ToDo() 
$file = FileOpen("C:\file.csv", 0)
$sWFound= ''
While 1
    $line = FileReadLine($file)
    If @error = -1 Then ExitLoop
    If StringInStr(" "&$line,$sRead) > 0 Then
        $sWFound &= $line & @LF  
    EndIf
WEnd
EndFunc

Do you write me the rest ?

tank you

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  
Followers 0