Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > Help: FUNCTION ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 190 of 266
Post > Topic >>

Help: FUNCTION -- return array howto ?

by Alen Hopek <alen.hopek@[EMAIL PROTECTED] > May 4, 2006 at 06:52 PM

Hello,

sorry for such newbie question.

I need to return a array as return value out of a function in PowerBasic
v8.01

Something like this:

FUNCTION Test() AS LONG
  DIM array(1 to 20)
 
  array(0) = "Value1"
  array(1) = "Value2"
  array(2) = "Value3"

  REM Some other Job

  FUNCTION = array
END FUNCTION

This will not work.
Has anyone some help for me ?

Greetings
Alen Hopek




 4 Posts in Topic:
Help: FUNCTION -- return array howto ?
Alen Hopek <alen.hopek  2006-05-04 18:52:57 
Re: Help: FUNCTION -- return array howto ?
jberry@[EMAIL PROTECTED]   2006-05-04 10:15:55 
Re: FUNCTION -- return array howto ?
"Tom Lake" <  2006-05-04 13:21:22 
Re: FUNCTION -- return array howto ?
"Michael Mattias&quo  2006-05-04 18:15:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 19:20:01 CDT 2008.