Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a file with a Date
Message
 
À
07/07/2000 19:18:55
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00389750
Message ID:
00389757
Vues:
10
Hi Victor,

Did you try to use Format function to convert datetime variable to a string variable?

example:
Open "EWSD" & Format$(now,"MMMM dd, yyyy") & ".log" for output as ifilenum

HTH, Igor

>Hi,
>
> I'm creating a file like this format: c:\ewsd\data\July 7,2000.log
>
>
> In my load event of my form:
> dim cdayt as string
> cdayt= now
>
> In my event:
>
> ifilenum=freefile
> Open "EWSD" & cdayt & ".log" for output as ifilenum
> write #iflenum, cBuffer
> close #ifilenum
>
> I can't concatenate the current date to other strings expression.
> If I remove the variable cdayt , it works for me.
>
> any idea.
Igor Gelin
Database Developer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform