Lotus Script syntax for multi dimensionnal array

4110 pts.
Tags:
Lotus Domino
Lotus Notes
Lotus Notes 7
Lotus Script
Hi all I have write a function that will return a multi dimensionnal array. But i dont know how to write it in the calling program. Can someone help ? Sample (doesnt work): [code]
Dim tabResult() as variant

tabResult = MyFunction()


Functio MyFunction() as variant

ReDim MyFunction( 10, 5) 

MyFunction(0,1) = "blabla"
[/code][code]MyFunction(0,2) = 10
// and so on...
[/code][code]Return MyFunction
[/code]

Software/Hardware used:
Lotus 7

Answer Wiki

Thanks. We'll let you know when a new response is added.

The following works:

Dim tabResult As Variant
tabResult = MyFunction

Function MyFunction() As Variant
Redim tmp( 10, 5)
tmp(0,1) = “blabla”
tmp(0,2) = 10
MyFunction = tmp
End Function

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Righthandled
    It just might be a typo in your posting, but the third line in your code has an error in that you misspelled Function "Functio MyFunction() as variant" Cheers
    60 pointsBadges:
    report
  • BruceWayne
    @Righthandled : You are right for the type (sorry for that) but it is not the problem ;-) @Stiletto :thx, i will give a try
    4,110 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following