Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
J@Y J@Y is offline
external usenet poster
 
Posts: 127
Default Jagged arrays - Cannot Define with Arr1()() as integer = New integ

On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Jagged arrays - Cannot Define with Arr1()() as integer = New integ

Post the URL for this citation.

Is it for VB6? To the best of my knowledge, VB6 doesn't use any notation
like that.

If it isn't about VB6, then there's your huckleberry.

--
Regards,
Tom Ogilvy


"J@Y" wrote:

On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?

  #3   Report Post  
Posted to microsoft.public.excel.programming
J@Y J@Y is offline
external usenet poster
 
Posts: 127
Default Jagged arrays - Cannot Define with Arr1()() as integer = New i

Its under visual studio
http://msdn2.microsoft.com/en-us/lib...9t(VS.80).aspx


"Tom Ogilvy" wrote:

Post the URL for this citation.

Is it for VB6? To the best of my knowledge, VB6 doesn't use any notation
like that.

If it isn't about VB6, then there's your huckleberry.

--
Regards,
Tom Ogilvy


"J@Y" wrote:

On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Jagged arrays - Cannot Define with Arr1()() as integer = New i

The page clearly states -

"This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0"

which is not VB/VBA and makes Tom's huckleberry comment highly apposite.

But I can see why you may have been misled into thinking otherwise when the
page is also titled "Visual Basic Language Concepts".

Regards,
Peter T

"J@Y" wrote in message
...
Its under visual studio
http://msdn2.microsoft.com/en-us/lib...9t(VS.80).aspx


"Tom Ogilvy" wrote:

Post the URL for this citation.

Is it for VB6? To the best of my knowledge, VB6 doesn't use any

notation
like that.

If it isn't about VB6, then there's your huckleberry.

--
Regards,
Tom Ogilvy


"J@Y" wrote:

On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Jagged arrays - Cannot Define with Arr1()() as integer = New integ

As others have pointed out, that is not VB/VBA code.
Something like this maybe:

Private Sub CommandButton1_Click()
Dim arrAll As Variant
Dim i As Long
Dim TempStr As String

Const MAX_ENTRIES As Long = 10

ReDim arrAll(1 To MAX_ENTRIES)

For i = 1 To MAX_ENTRIES
TempStr = Application.WorksheetFunction.Rept("Text,", Rnd() * 50)
arrAll(i) = Split(TempStr, ",")
Next

Dim j As Long

For i = LBound(arrAll) To UBound(arrAll)
For j = LBound(arrAll(i)) To UBound(arrAll(i))
Debug.Print i, j, arrAll(i)(j)
Next 'j
Next 'i

End Sub

NickHK

"J@Y" wrote in message
...
On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Jagged arrays - Cannot Define with Arr1()() as integer = New i

Peter,
Whilst you are correct in this instance, it would seem MS are putting
similar statements on all pages, whether applicable or not. See:
http://msdn2.microsoft.com/en-us/library/aa384106.aspx

Just to add to the confusion....

NickHK

"Peter T" <peter_t@discussions wrote in message
...
The page clearly states -

"This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0"

which is not VB/VBA and makes Tom's huckleberry comment highly apposite.

But I can see why you may have been misled into thinking otherwise when

the
page is also titled "Visual Basic Language Concepts".

Regards,
Peter T

"J@Y" wrote in message
...
Its under visual studio
http://msdn2.microsoft.com/en-us/lib...9t(VS.80).aspx


"Tom Ogilvy" wrote:

Post the URL for this citation.

Is it for VB6? To the best of my knowledge, VB6 doesn't use any

notation
like that.

If it isn't about VB6, then there's your huckleberry.

--
Regards,
Tom Ogilvy


"J@Y" wrote:

On MS site, it says use the following to define Jagged arrays:
Arr1()() as Double = New Double()() {}
how come it doesn't seem to work in Excel's VB?





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Jagged arrays - Cannot Define with Arr1()() as integer = New i

Hi Nick,

Seems they forgot to change the sign on the door !

Regards,
Peter T

"NickHK" wrote in message
Peter,
Whilst you are correct in this instance, it would seem MS are putting
similar statements on all pages, whether applicable or not. See:
http://msdn2.microsoft.com/en-us/library/aa384106.aspx

Just to add to the confusion....

NickHK

<snip


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pie Chart has jagged edges Liz Charts and Charting in Excel 0 August 25th 09 03:39 PM
Excel Pie Charts are Jagged Drew[_3_] Charts and Charting in Excel 0 August 14th 08 08:11 PM
How do I fix my pie graphs in Excel? it's coming out with jagged Kristen L Excel Discussion (Misc queries) 0 February 27th 08 03:41 PM
Display of 3D bar charts...looking jagged?? Dgallo Charts and Charting in Excel 2 November 6th 07 03:30 PM
soften jagged edges of pie charts zen Charts and Charting in Excel 1 June 17th 05 06:45 PM


All times are GMT +1. The time now is 04:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"