VB5 passing arguements, user defined types and arrays 
Author Message
 VB5 passing arguements, user defined types and arrays

I'm writing a front end program for an access database. My idea was to
make the code as reuseable as I could. There would be a data entry form
for each main table. This form would contain a control array of text
boxes and an array of a user defined type I declared called fieldInfo.
fieldInfo would keep needed information about the data a text box would
display. ie Table name, field name , max value, required etc.
        I would then be able to have generic fill and validation routines that
looped through the control array and used information from the fieldInfo
array using the control array index to access the correct element in the
array. I'm having trouble though as I can't work out how to send the
control array and fieldinfo array to these generic routines in a
standard module. I was expecting to just send the form as the arguement,
and access these items through it. That works OK for the control array
but not the fieldInfo array which I can't declare as public(I didn't
want to anyway, it seemed poor encapsulation) The private fieldInfo
array isn't accessable in the standard module, through the from
arguement.
        I haven't got a firm hold on all the implications of private/public yet
beacause I can't seem to find a way to access the private data, of a
form. Tried a get property but couldn't have user defined type as return
type. I suppose if I knew how to pass an array as an arguement I could
solve this problem, but I wanted to give more detail to see if people
felt the logic of my solution seemed OK  
        If I've articulated my problem well enough, and you have the time an
emailed response would be great.

Thank you
Grant Abe



Fri, 21 Jul 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Passing Array or a user defined data type as a parameter to a storedprocedure in Oracle

2. Passing an array of user-defined data type to a class module

3. Passing Arrays and User-Defined Types to Procedures

4. passing arrays of user defined types to dll's

5. Passing Array or a user defined data type as a parameter to a storedprocedure in Oracle

6. Passing a User-defined type with array

7. Bug VB5 Dll: Passing and Returning User-Defined Types

8. Bug VB5 Dll: Passing and Returning User-Defined Types

9. Passing User Defined Type as a parameter in method gives a VB5 error

10. Passing User Defined Type as a parameter in method gives a VB5 error

11. Passing User-Defined Type in VB5?

12. Bug VB5 Dll: Passing and Returning User-Defined Types

 

 
Powered by phpBB® Forum Software