Click here to Skip to main content
       

.NET Framework

 
QuestionCrytal reports Pinmemberyaswanth0011-Oct-12 2:27 
AnswerRe: Crytal reports PinprotectorPete O'Hanlon1-Oct-12 2:46 
GeneralRe: Crytal reports Pinmemberyaswanth0011-Oct-12 8:04 
GeneralRe: Crytal reports PinprotectorPete O'Hanlon1-Oct-12 10:42 
QuestionAndroid applications PinmemberMember 940514026-Sep-12 7:24 
AnswerRe: Android applications PinmvpRichard MacCutchan26-Sep-12 7:32 
AnswerRe: Android applications PinmvpAbhinav S1-Oct-12 2:49 
QuestionJagged Array as Return Type from Function - Syntax Driving me Bonkers PinmemberMike-MadBadger25-Sep-12 7:50 
For love nor money I cannot get the syntax right.
I want to return 3 x 2D arrays from a function but can't wrap my head around it - I suspect I have just failed to grasp some fundamental aspect of jagged arrays!
Public Function SVD() As Double(,)(,)(,)
    Dim arS(,) As Double
    Dim arU(,) As Double
    Dim arV(,) As Double
 
    ...Fill the Arrays...
    
     Dim arSVD(,)(,)(,) As Double
     
     arSVD(0) = arS
     arSVD(1) = arU
     arSVD(2) = arV
 
     Return arSVD
End Function
If I have it that way the error is on arSVD(n) and says 'Number of indices is less than the number of dimensions...'
 
If I change the return type and arSVD to Double()()() then the error is on the last arS and says 'Value of type 2D array cannot be converted to 1D array...'
 
If I change it to arSVD(0,0) for example the error is on the last arS and says 'Value of type 2D array cannot be converted to type 2D array of 2D array...'
 
Bash. Head. Brick. Wall.
 
Any help very gratefully received.
 
Mike
AnswerRe: Jagged Array as Return Type from Function - Syntax Driving me Bonkers [modified] PinmemberRichard Deeming4-Oct-12 9:23 
GeneralRe: Jagged Array as Return Type from Function - Syntax Driving me Bonkers PinmemberMike-MadBadger4-Oct-12 21:43 
GeneralRe: Jagged Array as Return Type from Function - Syntax Driving me Bonkers PinmemberMike-MadBadger4-Oct-12 21:51 
Questionthe system.__ComObject Pinmembermajedksa25-Sep-12 2:30 
AnswerRe: the system.__ComObject PinmemberShameel25-Sep-12 2:55 
QuestionHelp with system.__ComObject Pinmembermajedksa25-Sep-12 2:29 
QuestionValidation of viewstate MAC failed. PinmemberSandeepkumar potu24-Sep-12 20:52 
AnswerRe: Validation of viewstate MAC failed. PinmvpSandeep Mewara24-Sep-12 21:13 
QuestionVB.NET with MSAccess [modified] Pinmemberkkct23-Sep-12 20:35 
AnswerRe: VB.NET with MSAccess PinmvpRichard MacCutchan23-Sep-12 22:45 
AnswerRe: VB.NET with MSAccess PinmemberMazumder.Soumen25-Sep-12 3:22 
Questionresizing a form in corner, bottom,right Pinmembergopal karmakar21-Sep-12 7:04 
QuestionRe: resizing a form in corner, bottom,right PinmemberEddy Vluggen21-Sep-12 7:20 
QuestionLookup table .NET Component PinmemberHentoDeluxe21-Sep-12 6:26 
AnswerRe: Lookup table .NET Component PinmemberEddy Vluggen21-Sep-12 7:19 
QuestionConverting from base10 to base16 and save it in unsigned char array? PinmemberKiran Satish19-Sep-12 11:06 
AnswerRe: Converting from base10 to base16 and save it in unsigned char array? PinmvpRichard MacCutchan19-Sep-12 12:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.141223.1 | Last Updated 25 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid