Guten Abend,
Ich habe mir mal nen Quellcode aus dem Forum hier genommen
[autoit]#include "MySQL.au3"
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 193, 125)
$List1 = GUICtrlCreateList("", 8, 8, 345, 409)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
$UserName = "root"
$Password = ""
$Database = "test"
$MySQLServerName = "127.0.0.1"
$SQLInstance = _MySQLConnect($UserName,$Password,$Database,$MySQLServerName)
[/autoit][autoit][/autoit][autoit]$SQLCode = "SELECT * FROM db"
$TableContents = _Query($SQLInstance,$SQLCode)
With $TableContents
While Not .EOF
MsgBox(0, 'Output', .Fields("artikel").value)
.MoveNext
WEnd
EndWith
_MySQLEnd($SQLInstance)
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Mein Vorhaben ist nun folgend:
- Auflistung nicht mit MSGBox sondern in listview (List1)
- Jeder Artikel soll im listview mit doppelklick anwäählbar sein wo sich dann ein HTTP LInk drunter versteckt, der auch aus der sql kommt
Kann mir wer da schützenhilfe geben? Also keinen Code sondern stichworte für den anfang?
MFG