clarkbones
2001-05-09, 16:58
Hej! Jag har en combobox som fylls med värden m h a ett sql-uttryck.
Jag vill att default skall vara det första alternativet i listan. Så jag skriver följande kod:
cboBransch.ListIndex =0
har också testat med
cboBransch.ListIndex =1
och
cboBransch.ListIndex = (cboBransch.ListCount - 1)
men får samma fel hela tiden. OBS exakt samma kod funkar i en combobox i Excel!!!
Felmeddelande:
Runtime error 7777
You've used the listindex property incorrectly
Jag vill att default skall vara det första alternativet i listan. Så jag skriver följande kod:
cboBransch.ListIndex =0
har också testat med
cboBransch.ListIndex =1
och
cboBransch.ListIndex = (cboBransch.ListCount - 1)
men får samma fel hela tiden. OBS exakt samma kod funkar i en combobox i Excel!!!
Felmeddelande:
Runtime error 7777
You've used the listindex property incorrectly