PC Review


Reply
Thread Tools Rate Thread

declaring array

 
 
Monte0682
Guest
Posts: n/a
 
      23rd Mar 2007
Hello when I declare an array in function called initialize like this:

ArrayA (0)="something"

it is remembered...

if I call ArrayA(0) in another function is knows the value is
something

....

Now I tried declaring an array like this:

Dim ArrayA as Variant
ArrayA=array("something")...

when I call it in another function it shows blank for ArrayA(0)...

What I am doing wrong?

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      23rd Mar 2007
Declare

Public ArrayA as Variant

outside of any procedure

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Monte0682" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello when I declare an array in function called initialize like this:
>
> ArrayA (0)="something"
>
> it is remembered...
>
> if I call ArrayA(0) in another function is knows the value is
> something
>
> ...
>
> Now I tried declaring an array like this:
>
> Dim ArrayA as Variant
> ArrayA=array("something")...
>
> when I call it in another function it shows blank for ArrayA(0)...
>
> What I am doing wrong?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Declaring an array Fred Blair Microsoft VB .NET 4 17th Nov 2008 08:34 PM
Declaring Array Fredriksson via OfficeKB.com Microsoft Excel Programming 10 2nd Mar 2007 07:04 PM
Declaring array of references. rayreeves Microsoft C# .NET 11 23rd Jan 2007 09:17 PM
declaring an array =?Utf-8?B?TUlf?= Microsoft Access Form Coding 5 18th Dec 2006 02:17 PM
declaring an array (i think) Cindy Microsoft Excel Programming 2 15th Mar 2004 11:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 PM.