Solved

parameters

Posted on 2000-03-20
1
144 Views
Last Modified: 2010-05-02
I want to send parameters to a procedure such as form_load, how can I do that without using a public vaiable or a public procedure?
0
Comment
Question by:makris
1 Comment
 
LVL 5

Accepted Solution

by:
Voodooman earned 50 total points
Comment Utility
You cant change the Standard from load events.

What I do is Create a Property on the form.

In the General Declarations of a testForm add this

Public EditMode as Boolean

Now before you load your form

TestForm.EditMode=True


You can then use this in the form load event to set the edit mode setup of you form.

Like this

Form Load

If editmode=true then
     TB_Something.visible=false
else
     TB_Something.visible=true
end if





Calling this type of Property does not load the form.

Be Carefull to set it to false when the form closes.

Good Luck

Voodooman!




0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

772 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

12 Experts available now in Live!

Get 1:1 Help Now