|
-
Oct 22nd, 2002, 05:38 PM
#1
Thread Starter
Member
Date
I am trying to wite the date to a text file but
doing
print #1, date
isn't doing it... is there anyother way I can do this?
-
Oct 22nd, 2002, 05:39 PM
#2
You need to be bit more specific. What do you mean "xyz" isn't doing it? What DOES it do?
Are you closing the file?
Do you get an error?
Do you get the data, just in the wrong format?
WHAT?! Details, please.
-
Oct 22nd, 2002, 05:42 PM
#3
Frenzied Member
yes.. plz explain your problem a bit more
is it literally printing "date" instead of the date... ???
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Oct 22nd, 2002, 06:25 PM
#4
Try this...
VB Code:
Private Sub cmdSaveDate_()
Dim Today As Variant
Today = Format(Now,"mm/dd/yyyy")
Open "c:\MyDateFile.txt" For Append As #1
Print #1, Today
Close #1
End Sub
-
Oct 22nd, 2002, 08:55 PM
#5
Thread Starter
Member
I am able to create, open and close the file but inside the file where I should be printing the date... there isn't anything there.
-
Oct 22nd, 2002, 08:59 PM
#6
Thread Starter
Member
hack... thanks,
I see where i messed up... i need to format it as (now, ....)
thanks agian..
-
Oct 22nd, 2002, 09:01 PM
#7
PowerPoster
Well
This always worked for me...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|