Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

declaring an Array as global 1

Status
Not open for further replies.

AKarim

Technical User
Mar 20, 2000
41
EU
Hi,<br>I'm trying to use arrays as Global Variable but when I compile, i'm said, that the array can't be public, how can i it ?<br><br>Here is the code I use :<br><br>Const glMaxFiltre = 50<br>Public glFiltreType(0 To glMaxFiltre) As String<br>Public glFiltreNumero(0 To glMaxFiltre) As String<br>Public glFiltreParametre(0 To glMaxFiltre) As String<br>
 
for starters you might want to try sticking that declaration into a Module, or outside of a function/subroutine(if you havent already) also if you declare an array inside of a form, it's global to all functions and subroutines to that form, if you want it globally availible to the project, you need to create a module, and declare it there. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top