投稿日 | : 2007/01/20(Sat) 13:18 |
投稿者 | : Do_Shirouto |
Eメール | : |
URL | : |
タイトル | : Re^6: 配列要素についてお願いします |
> > Private Sub Combo1_Change(Index As Integer)
> > ST = Index
>
> この ST が悪さしているようですね。
> Combo1(ST + 1).Text = OP$ '--ここではST=18
> ここで書き込んだ時に ST = Index で ST=19 になっている
> ブレークポイントを設定して確認して見て下さい
>
> 下記のように変更して見て下さい
> If Left$(DAT, Len(Combo1(Index).Text)) = Left$(Combo1(Index).Text, Len(Combo1(Index)
.Text)) Then
> List2(Index \ 3).AddItem DAT
皆さんご親切に
色々とご回答有り難うございました。
特に花ちゃん さん、LESIAさん有り難うございました
下記のように書き換えて無事解決いたしました・
'-------------------------
Private Sub List2_Click(Index As Integer)
Combo1(Index * 3).Text = List2(Index).List(List2(Index).ListIndex)
Open App.Path & "\DATA.txt" For Input As #1
Do Until EOF(1)
Input #1, Daa
Input #1, Dbb
Input #1, Dcc
If Combo1(Index * 3).Text = Daa Then
Combo1(Index * 3 + 1).Text = Dbb
Combo1(Index * 3 + 2).Text = Dcc
Exit Do
End If
Loop
Close #1
List2(Index).Visible = False
DoEvents
End Sub
'--------------------------------
お手数輪おかけして、誠に申し訳ございませんでした。
有難う御座いました。