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!