D
David
Hi all,
I am fairly new to C#. so go easy on me
Anyhow, I have a class file that I have set up properties and a method.
I am calling this class file directly from and aspx.cs file. So far, it
works great (after having a bit of heartache about .Dispose() ).
Now, I need a certain part of the class file to run through many times and
take values from an array/arraylist/dataset (which ever is the easiest).
What I need to pass is:
1. An array of filenames. (could be about 5 or 6 different filenames.)
2. An array of x,y coordinates. (Up to 73 coordinates)
3. An array of tying filenames to x,y coords.
(number 3 may be able to integrate into 1 or 2, but I am not sure how to go
about it).
What I don't know is wether to set up properties and pass the arrays to the
properties OR pass the arrays direct into the method.
Either way, can someone show me how to handle it?
What I want to do though is to not be forced to use an array when calling
the method, so that I can use my existing properties if need be to set the
method up. I think this is going to lead me down override/inheritence (never
done that before...) in order to be able to use both.
So, in summary, here is what I need to do...
Call my program like...
myClass.MyMethod().save(...)
or
myClass.MyMethod(array1, array2, array3).save(...)
Any and all help will be very much appreciated.
Thanks.
Dave Colliver.
http://www.GreatYarmouthFOCUS.com
~~
http://www.FOCUSPortals.com - Portal Franchises available
I am fairly new to C#. so go easy on me

Anyhow, I have a class file that I have set up properties and a method.
I am calling this class file directly from and aspx.cs file. So far, it
works great (after having a bit of heartache about .Dispose() ).
Now, I need a certain part of the class file to run through many times and
take values from an array/arraylist/dataset (which ever is the easiest).
What I need to pass is:
1. An array of filenames. (could be about 5 or 6 different filenames.)
2. An array of x,y coordinates. (Up to 73 coordinates)
3. An array of tying filenames to x,y coords.
(number 3 may be able to integrate into 1 or 2, but I am not sure how to go
about it).
What I don't know is wether to set up properties and pass the arrays to the
properties OR pass the arrays direct into the method.
Either way, can someone show me how to handle it?
What I want to do though is to not be forced to use an array when calling
the method, so that I can use my existing properties if need be to set the
method up. I think this is going to lead me down override/inheritence (never
done that before...) in order to be able to use both.
So, in summary, here is what I need to do...
Call my program like...
myClass.MyMethod().save(...)
or
myClass.MyMethod(array1, array2, array3).save(...)
Any and all help will be very much appreciated.
Thanks.
Dave Colliver.
http://www.GreatYarmouthFOCUS.com
~~
http://www.FOCUSPortals.com - Portal Franchises available