Click here to Skip to main content
15,921,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: The old DoEvents and UserControls Pin
Dave Kreskowiak2-Jun-13 14:21
mveDave Kreskowiak2-Jun-13 14:21 
GeneralRe: The old DoEvents and UserControls Pin
treddie2-Jun-13 16:33
treddie2-Jun-13 16:33 
GeneralRe: The old DoEvents and UserControls Pin
Dave Kreskowiak2-Jun-13 19:25
mveDave Kreskowiak2-Jun-13 19:25 
GeneralRe: The old DoEvents and UserControls Pin
treddie2-Jun-13 21:02
treddie2-Jun-13 21:02 
Questionlooping through rows and columns of a datarow Pin
hlsc19831-Jun-13 8:21
hlsc19831-Jun-13 8:21 
Questionhow to loop through items(columns) of a row in a dataset? Pin
hlsc198331-May-13 21:49
hlsc198331-May-13 21:49 
QuestionNot Getting cell value for selected row of GridView Pin
ADSCNET30-May-13 7:36
ADSCNET30-May-13 7:36 
QuestionRenci SSH Problem Pin
ToxicF3AR28-May-13 5:50
ToxicF3AR28-May-13 5:50 
AnswerRe: Renci SSH Problem Pin
Dave Kreskowiak28-May-13 5:56
mveDave Kreskowiak28-May-13 5:56 
GeneralRe: Renci SSH Problem Pin
ToxicF3AR28-May-13 6:07
ToxicF3AR28-May-13 6:07 
GeneralRe: Renci SSH Problem Pin
Richard MacCutchan28-May-13 6:31
mveRichard MacCutchan28-May-13 6:31 
GeneralRe: Renci SSH Problem Pin
ToxicF3AR28-May-13 6:41
ToxicF3AR28-May-13 6:41 
QuestionWhere is my program spending the majority of time? Pin
treddie27-May-13 14:52
treddie27-May-13 14:52 
AnswerRe: Where is my program spending the majority of time? Pin
Dave Kreskowiak27-May-13 16:00
mveDave Kreskowiak27-May-13 16:00 
GeneralRe: Where is my program spending the majority of time? Pin
treddie27-May-13 17:26
treddie27-May-13 17:26 
GeneralRe: Where is my program spending the majority of time? Pin
Dave Kreskowiak27-May-13 18:06
mveDave Kreskowiak27-May-13 18:06 
GeneralRe: Where is my program spending the majority of time? Pin
treddie27-May-13 18:16
treddie27-May-13 18:16 
GeneralRe: Where is my program spending the majority of time? Pin
Dave Kreskowiak28-May-13 1:45
mveDave Kreskowiak28-May-13 1:45 
AnswerRe: Where is my program spending the majority of time? Pin
Tim Carmichael28-May-13 5:47
Tim Carmichael28-May-13 5:47 
GeneralRe: Where is my program spending the majority of time? Pin
treddie28-May-13 7:57
treddie28-May-13 7:57 
Questionsubcription out of range? how can i fix this problem Pin
Member 1003837621-May-13 15:02
Member 1003837621-May-13 15:02 
hello everyone,

is there anyone could help me to this problem, I have downloaded a module file which is (exifReader), then I apply it to my system code. when I browse an image from a folder or file when I click the a button to show the properties of the image and put it to some textbox, I got this error saying " run time error 9 , Subcription out range",

this is the code for showing the properties of the image :

Private Sub Command1_Click()
If Picture1.Picture = 0 Then
MsgBox ("Insert Image First")
Else
Text6.Text = CommonDialog1.FileName
Text3.Enabled = False
Dim objexif As New ExifReader
objexif.Load (Text6.Text)
Text2.Text = objexif.Tag(GPSLongitude)
Text3.Text = objexif.Tag(GPSLatitude)
Text4.Text = objexif.Tag(GPSInfo)
Text5.Text = objexif.Tag(DateTimeOriginal)
Text2.Enabled = False
Text6.Enabled = False
Text3.Enabled = False
End If
End Sub
//*******

and this the module part of code where the error shows.

Private Function InspectJPGFile() As Boolean

Dim i As Long

If ExifTemp(0) <> &HFF And ExifTemp(1) <> &HD8 Then
InspectJPGFile = False
Else
///this line is having error, subscription out of range///
For i = 2 To UBound(ExifTemp) + 1
If ExifTemp(i) = &HFF And ExifTemp(i + 1) = &HE1 Then
Offset_to_APP1 = i
Exit For
End If
Next

If Offset_to_APP1 = 0 Then
InspectJPGFile = False
End If

Offset_to_TIFF = Offset_to_APP1 + 10

Length_of_APP1 = _
ExifTemp(Offset_to_APP1 + 2) * 256& + _
ExifTemp(Offset_to_APP1 + 3)

If Chr(ExifTemp(Offset_to_APP1 + 4)) & Chr(ExifTemp(Offset_to_APP1 + 5)) & _
Chr(ExifTemp(Offset_to_APP1 + 6)) & Chr(ExifTemp(Offset_to_APP1 + 7)) <> "Exif" Then
InspectJPGFile = False
Exit Function
End If

InspectJPGFile = True

End If


if the codes are not enough to analyze please tell me and I post all the code for exifreader class module, any idea and help are really appreciated. thanks..


by the way I use Visual basic 6.0.. ^_^

jonel
AnswerRe: subcription out of range? how can i fix this problem Pin
Dave Kreskowiak21-May-13 16:30
mveDave Kreskowiak21-May-13 16:30 
Questionvb6 vidoes Pin
gunakag2019-May-13 23:22
gunakag2019-May-13 23:22 
AnswerRe: vb6 vidoes Pin
CHill6020-May-13 0:06
mveCHill6020-May-13 0:06 
QuestionVB.net 2010 form positioning Pin
athan_makubex19-May-13 9:04
athan_makubex19-May-13 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.