|
-
Apr 6th, 2010, 09:43 PM
#1
Thread Starter
Lively Member
Re: good old arrays
thanks once again, i didnt think so,
how about the following can you help me resolve these issues please:
now my program consists of 2 arrays right? markarray and namearray ???
going back to my other issue which was:
"Improve the program, where the students’ names and marks are stored in a record, rather than arrays "
do you understand what i need to do because im still a tad bit lost on that? please clarify.....
do I now create a module and replace the arrays (name and mark) with what I used previously? i.e.
Students(Element).StudentName = txtStudentName.Text
Students(Element).StudentMark = txtStudentMark.Text
this is what i think as "students" could be classed as 1 record - i kinda of think but am not 100% sure...
whats your thoughts??
thank you so much
Last edited by xirokx; Apr 6th, 2010 at 09:51 PM.
-
Apr 6th, 2010, 09:53 PM
#2
Re: good old arrays
First of all I'll play Dad (or Granddad since I'm 69) here but you should get some sleep
 Originally Posted by xirokx
thanks once again, i didnt think so,
how about the following can you help me resolve these issues please:
now my program consists of 2 arrays right? markarray and namearray ???
Yes
going back to my other issue which was:
"Improve the program, where the students’ names and marks are stored in a record, rather than arrays "
do you understand what i need to do because im still a tad bit lost on that? please clarify.....
do I now create a module and replace the arrays (name and mark) with what I used previously? i.e.
Students(Element).StudentName = txtStudentName.Text
Students(Element).StudentMark = txtStudentMark.Text
this is what i think...
whats your thoughts??
First you need to tell me what you mean by a record. If you mean something like an entry in the former Students array then yes you need the Students array but that doesn't have to be in a module. You now know how to create an array in the form, right?
thank you so much
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
|