[elektro-etc] VB6 kerdes

Famulus Számítástechnika hwsw at famulus.hu
Sat Feb 9 23:55:12 CET 2008


Ez a cim a help-ben

Understanding the Scope of Variables

Ezen belul...

Variables Used by All Modules

To make a module-level variable available to other modules,
use the Public keyword to declare the variable.

The values in public variables are available to all procedures in your 
application.
Like all module-level variables, public variables are declared
in the Declarations section at the top of the module. For example:

Public intTemp As Integer


Tovabbi finomsagok...

Advanced Variable Topics


KJ

>> Küzdök ezzel a VB6-al és még mindig homályos egy-két dolog.
>>
>> Van egy modulban egy tömb. Ki lehet ezt emelni valahogy úgy, mint
>> C-ben pointerrel és igy a modulon kivül  tudjam piszkálni a tömböt ?
>> Ne kelljen már mindig töltögetni.
>>
>> Ha lehet valahogy, egy példa nem ártana.
>>
>> Köszi
>>
>> Üdv.  Zoli
>
>
> Nem teljesen ertelek, de
>
> egy Modul-ban definilat Public tomb
> mindig barhonnan lathato a neve alapjan is...
>
> Illetve letezik a ByRef lehetoseg a
> fuggveny/eljaras hivas parmeterezesenel
> azert, hogy ne stack-en at kelljen
> manipulalni, gondolom ez kell neked ...
>
> De ez az ALAPERTELMEZES is.
>
> A ByVal az meg kiirando...
>
> KJ
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.516 / Virus Database:
> 269.19.21/1267 - Release Date: 2008.02.08. 20:12
>
>



More information about the Elektro-etc mailing list