gettingstarted
[Top] [All Lists]

Re: Two-Dimensional Array as Property?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Two-Dimensional Array as Property?
From: Barry Traver <rb at ix dot netcom dot com>
Date: Thu, 29 Dec 2005 08:24:44 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <912A3425-B487-4174-A150-EA30B04247EE at pcisys dot net> <424FD006-EF18-4FFC-B929-84C74E59B709 at hit dot net> <0F460F05-B180-417B-A2E8-DE722246ACCE at pcisys dot net> <fe7c1151778672b7883db06cb89449b2 at declareSub dot com> <98C91AFA-1AE3-46A0-8A68-89C33AF50DB0 at pcisys dot net> <AE326F2E-2B23-4BA5-AE29-11C0B7126BB6 at pcisys dot net> <ff922d9250bd66fc78285b09ec5c5f92 at declareSub dot com> <43B3AD25 dot 2050407 at ix dot netcom dot com> <01BD3D80-C04C-44ED-B232-D109C8953731 at hit dot net>
Jack,


In RB 2005, how do you designate a two-dimensional string array as a Property? Thanks!

Declaration: MyArray(m,n)
As: string

There is no Append for two-dimensional arrays and the declarations MyArray(,) and MyArray(-1,-1) give syntax errors.

Thanks! I discovered by esperimenting that Declaration: My Array(-1, -1) As String and Declaration( , ) As String didn't work (nor does Declaration: My Array(12, 30) As String), but I didn't know (and couldn't find in the documentation) what else to use.

Some more questions: You mention that there is no Append for two-dimensional arrays. Is there a ReDim (and does it by default preserve the contents as is done with one-dimensional arrays)? And where is the Language Reference (or User's Guide?) is this information found?

Barry Traver

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>