Solved

Global variables for use with a DLL and referencing application

Posted on 1998-11-13
3
223 Views
Last Modified: 2010-04-30
Can you store global variables in a DLL so they can be used within the DLL and by the referencing application - if so, how?
0
Comment
Question by:tomnich
3 Comments
 
LVL 2

Accepted Solution

by:
Poddy earned 100 total points
ID: 1444802
No.

You need to set up a couple of functions to mimic a property

ie: 1 to set a value, 1 to retrieve it.
0
 
LVL 1

Expert Comment

by:ajmendes
ID: 1444803
Hi,
the only way you have to do what you want is to declare Properties Set and Let and Properties Get in a classe module where you want to "share" the variable.
Properties Set/Let allow you to assign to the global variable of a class a object/simple value(number, string,etc).
Propertie Get allow you to retrieve the value that exists in the variable.
If you want more info, i'll be available on monday.

Bye.
0
 
LVL 1

Author Comment

by:tomnich
ID: 1444804
Thanks, Doesn't really acheive what I want, and it seems what I want is not possible
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replace Formatted Numbers with text 9 61
Excel object stays open 19 71
Run code from text file in vb 1 57
Modifying Conditional Format from VBA code 3 49
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now