Random Access Files Help!!

Reply

Join Date: Mar 2006
Posts: 1
Reputation: HellRazor is an unknown quantity at this point 
Solved Threads: 0
HellRazor HellRazor is offline Offline
Newbie Poster

Random Access Files Help!!

 
0
  #1
Mar 13th, 2006
Hello, im having problems with using a RAF in my project.

i have 5 fields on my form three of wich hold integers and the other two hold strings, i want the data to then be sent via a "send button" to the random access file.

here is the code wich i belive should work..

Private Sub sendstustory_Click()
Dim story As storydata

story.daydate = stdd.Text
story.monthdate = stmm.Text
story.yeardate = styy.Text
story.storyhead = StudentHeader.Text
story.mainstory = stustorytxtsnd.Text

Open "c:\storyholder" For Random As #1 Len = Len(story)
Put #1, , story

Close #1

note that i also created my own data type for these*

basicaly it just isnt working when i execute the program everything runs smooth. but nothing appears in the RAF,
and it isn't throwing any errors.

help would b much appreciated..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Random Access Files Help!!

 
0
  #2
Mar 13th, 2006
Remove The Len = Len(story).... see if that helps.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC