Article View: borland.public.csharpbuilder.language.csharp
Article #583Passing ref to array to form's contstructor
From: John F
Date: Mon, 16 Aug 2004 01:24
Date: Mon, 16 Aug 2004 01:24
22 lines
1499 bytes
1499 bytes
I'm trying to pass an array reference to the constructor of a form which is being called from the main form:
The array is an array, "patientdata", is an initialized array of 5 strings.
The calling function contains the following code:
1. My_Project.frmServiceDate my_frmServiceDate =
new My_Project.frmServiceDate( ref string[] str_array);
2. my_frmServiceDate.ShowDialog(ref patientData );
The constructor of the form being called is:
public frmServiceDate( ref string [] str_array )
The compiler complains at line (2.), telling me I need a '}' where the period between 'My_Project' and 'frmServiceDate' is located.
Please tell me what's wrong with the code and how to fix it.
Thank you.
John F.
Technical Details
Message-ID:
<41200ce9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,eef5a90c2b389caa,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John F" <jfowler@pol.net> Sender: "John F" <jfowler@pol.net> Reply-To: "John F" <jfowler@pol.net> Subject: Passing ref to array to form's contstructor Newsgroups: borland.public.csharpbuilder.language.csharp X-User-Info: 24.20.189.226 NNTP-Posting-Host: 207.105.83.66 Message-ID: <41200ce9$1@newsgroups.borland.com> Date: 15 Aug 2004 18:24:57 -0700 X-Trace: newsgroups.borland.com 1092619497 207.105.83.66 (15 Aug 2004 18:24:57 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail