Article View: borland.public.csharpbuilder.language.csharp
Article #584Re: Passing ref to array to form's contstructor
From: Tor Iver Wilhelmsen [TeamB]
Date: Mon, 16 Aug 2004 07:57
Date: Mon, 16 Aug 2004 07:57
18 lines
1667 bytes
1667 bytes
"John F" <jfowler@pol.net> writes:
> 1. My_Project.frmServiceDate my_frmServiceDate =
> new My_Project.frmServiceDate( ref string[] str_array);
As far as I know, you don't use the type in the method/constructor
call. Try changing that code to
My_Project.frmServiceDate my_frmServiceDate =
new My_Project.frmServiceDate( ref str_array);
> The compiler complains at line (2.), telling me I need a '}' where
> the period between 'My_Project' and 'frmServiceDate' is located.
If my suggestion does not fix the problem, keep in mind that compilers
are strange beasts; the real error can be somewhere else entirely. Try
making as minimal a method as possible, and see if that compiles; keep
adding statements until you have the whole method.
Technical Details
Message-ID:
<uy8kftszj.fsf@broadpark.no>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41200ce9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,eef5a90c2b389caa X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Sender: Tor Iver Wilhelmsen@TIWILHEL Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: Passing ref to array to form's contstructor References: <41200ce9$1@newsgroups.borland.com> From: tor.iver.wilhelmsen@broadpark.no (Tor Iver Wilhelmsen [TeamB]) Date: 16 Aug 2004 09:57:52 +0200 Message-ID: <uy8kftszj.fsf@broadpark.no> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 80.203.79.252 X-Trace: newsgroups.borland.com 1092642848 80.203.79.252 (16 Aug 2004 00:54:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail