HoneyMan
New member
- Joined
- Sep 25, 2022
- Messages
- 3
- Programming Experience
- 10+
Hellow everyone.
I'm on moving to vb.net from vba.
But I am facing a problem, help me please,...
this code make an error "System.NullReferenceException".
I searched for 3 hours but ,....
Please,.....
I'm on moving to vb.net from vba.
But I am facing a problem, help me please,...
error:
'이미지 파일 목록 콤보상자 재구성
If IsNothing(ComboBox1) Then
PictureBox10.Image = Nothing
Else
ComboBox1.Items.Clear()
End If
With ComboBox1
If prmVariationCode = "-999" Then
'모든 사진
For J = 0 To PageSet(0).Pages(CurPage).Products(0).PhotoCount - 1
ERR -----> .Items.Add("1")
.Items(J) = J + 1 & "/" & PageSet(0).Pages(CurPage).Products(0).PhotoCount & " " & PageSet(0).Pages(CurPage).Products(0).Photos(J).FileName
If J + 1 = PageSet(0).Pages(CurPage).Products(0).curPhotoSeq Then
.SelectedIndex = J
End If
Next J
Else
'해당 variation에 속하는 사진들만,..
For J = 1 To PageSet(0).Pages(CurPage).Products(0).PhotoCount
.Items.Add("[" & J & "/" & PageSet(0).Pages(CurPage).Products(0).PhotoCount & "] " & PageSet(0).Pages(CurPage).Products(0).Photos(J).FileName)
If prmVariationCode = PageSet(0).Pages(CurPage).Products(0).Photos(J).VariationCode Then
.SelectedIndex = J
PageSet(0).Pages(CurPage).Products(0).curPhotoSeq = J + 1
End If
Next J
End If
End With
this code make an error "System.NullReferenceException".
I searched for 3 hours but ,....
Please,.....
Last edited: