TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
URIscorey
NA
9
0
Random Access Files and Variables
Feb 25 2004 9:45 PM
To whom it may concern - I am working on a calendar project currently and I am having problems when attempting to reference a random access file via a variable that contains the day of the month. I have Option Strict On (possible to turn off, but only as a last resort). My logic is as follows, please tell me where Im flawed! On form load: Open all RAF in this manner - FileOpen(1, "januaruary.dat", .....) FileOpen(2, "february.dat"......) et. al Check if a record exists for that date - If System.IO.File.Exists(datDayofMonth.Day) = True Then FileGet(datMonthofYear.Month, udtMemo.strMemo, datDayofMonth.Day) *in this scenerio, Im having problems with checking if the file exists due to option strict not allowing the integer value stored in the variable datDayofMonth not being a string value needed for the Exists statement. Is there another way to accomplish this? Also, is my logic sound in the FileGet (and conversely in FilePut)? Please help!
Reply
Answers (
0
)
how can I delete memory allocated by a legacy C++ DLL
Help steer me from VB6 to C#