Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a file with a Date
Message
 
To
07/07/2000 19:18:55
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00389750
Message ID:
00389757
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform