kodr
Programmer
- Dec 4, 2003
- 368
Could someone help me with this code?
Code:
SavePicture picTemp.Image, App.Path & "\tmpout.bmp"
DoEvents
Open App.Path & "\tmpout.bmp" For Binary Access Read As #7
Do While Not EOF(7)
Get #7, , sFileDataTemp
sFileDataOut = sFileDataOut & sFileDataTemp
Loop
lFileLen = Len(sFileDataOut)
Close #7
[\code]
What's happening is, the "Get #7, , sFileDataTemp" line is not returning any data, when I step through my code, it show's sFileDataTemp = "". I've created a temp program that does just the above, and it seems to work fine. All the variables are Dim'd as local strings, except for lFileLen which is a local Long.
I've also verified that the save portion is correct, it generates a bitmap that I can open with any editor just fine.
Thanks