Click here to Skip to main content
15,901,505 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWindows Service Pin
KenBonny7-Jul-11 23:34
KenBonny7-Jul-11 23:34 
AnswerRe: Windows Service Pin
DaveAuld8-Jul-11 1:19
professionalDaveAuld8-Jul-11 1:19 
GeneralRe: Windows Service [modified] Pin
KenBonny8-Jul-11 1:56
KenBonny8-Jul-11 1:56 
JokeRe: Windows Service Pin
Eddy Vluggen8-Jul-11 13:06
professionalEddy Vluggen8-Jul-11 13:06 
GeneralRe: Windows Service Pin
KenBonny10-Jul-11 19:53
KenBonny10-Jul-11 19:53 
Questionmaster page Pin
ghantaanil7-Jul-11 20:27
ghantaanil7-Jul-11 20:27 
AnswerRe: master page Pin
Carmelo La Monica7-Jul-11 20:46
professionalCarmelo La Monica7-Jul-11 20:46 
Questionguardar puntero al ultimo archivo leido por Dir Pin
MasQueUnIntento6-Jul-11 8:07
MasQueUnIntento6-Jul-11 8:07 
Hola lista tengo un problema y es que quiero guardar puntero al ultimo archivo leido por Dir.. me refiero a esto:

Tengo un bucle :
<br />
    sArchivo = Dir(sFullPath2DirCliente)<br />
    iCountPictureOnFirstLoad = 0<br />
<br />
    Do While sArchivo <> vbNullString<br />
        If nII < 12 Then<br />
            If mbCargarImagen(sImageRootDir & sDirCliente & sArchivo, nII) Then<br />
                imgSnapshot(nII).Tag = sImageRootDir & sDirCliente & sArchivo<br />
                Me.LblFechaFoto(nII).Caption = FileSystem.FileDateTime(imgSnapshot(nII).Tag)<br />
                iCountPictureOnFirstLoad = iCountPictureOnFirstLoad + 1 ' By Almeda<br />
            Else<br />
                imgSnapshot(nII).Tag = vbNullString<br />
                Me.LblFechaFoto(nII).Caption = ""<br />
            End If<br />
        Else<br />
            Exit Do<br />
        End If<br />
        sArchivo = Dir$<br />
        nII = nII + 1<br />
    Loop<br />

El problema es que dentro de la funcion mbCargarImagen existe una sentencia que crea archivos temporales, por lo tanto cuando se ejecuta el sArchivo = Dir$ ya se perdió el puntero al ultimo archivo leido y me sale el error Invalid procedure call or argument...

Alguien sabe como se soluciona esto????


GRACIAS!!!
AnswerRe: guardar puntero al ultimo archivo leido por Dir Pin
Richard MacCutchan6-Jul-11 9:26
mveRichard MacCutchan6-Jul-11 9:26 
GeneralRe: guardar puntero al ultimo archivo leido por Dir Pin
MasQueUnIntento6-Jul-11 9:36
MasQueUnIntento6-Jul-11 9:36 
Question[VS10] Debug and Release build problem Pin
The Mighty Atom5-Jul-11 5:41
The Mighty Atom5-Jul-11 5:41 
AnswerRe: [VS10] Debug and Release build problem Pin
Richard MacCutchan5-Jul-11 6:38
mveRichard MacCutchan5-Jul-11 6:38 
GeneralRe: [VS10] Debug and Release build problem Pin
The Mighty Atom5-Jul-11 6:41
The Mighty Atom5-Jul-11 6:41 
GeneralRe: [VS10] Debug and Release build problem Pin
Richard MacCutchan5-Jul-11 10:09
mveRichard MacCutchan5-Jul-11 10:09 
GeneralRe: [VS10] Debug and Release build problem Pin
The Mighty Atom5-Jul-11 11:03
The Mighty Atom5-Jul-11 11:03 
GeneralRe: [VS10] Debug and Release build problem Pin
Richard MacCutchan5-Jul-11 11:33
mveRichard MacCutchan5-Jul-11 11:33 
GeneralRe: [VS10] Debug and Release build problem Pin
The Mighty Atom5-Jul-11 11:54
The Mighty Atom5-Jul-11 11:54 
AnswerRe: [VS10] Debug and Release build problem Pin
TheComputerMan13-Jul-11 0:51
TheComputerMan13-Jul-11 0:51 
GeneralRe: [VS10] Debug and Release build problem Pin
The Mighty Atom13-Jul-11 5:51
The Mighty Atom13-Jul-11 5:51 
QuestionUse event on Runtime Pin
ivo753-Jul-11 11:04
ivo753-Jul-11 11:04 
AnswerRe: Use event on Runtime Pin
JR2123-Jul-11 19:10
JR2123-Jul-11 19:10 
AnswerRe: Use event on Runtime Pin
Johan Hakkesteegt5-Jul-11 2:03
Johan Hakkesteegt5-Jul-11 2:03 
AnswerRe: Use event on Runtime Pin
Simon_Whale5-Jul-11 2:12
Simon_Whale5-Jul-11 2:12 
QuestionProblem using Package and Deployment Wizard Pin
Shouvik262-Jul-11 0:53
Shouvik262-Jul-11 0:53 
AnswerRe: Problem using Package and Deployment Wizard Pin
Dr.Walt Fair, PE2-Jul-11 18:58
professionalDr.Walt Fair, PE2-Jul-11 18:58 

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.