Solved

parameters

Posted on 2000-03-20
1
155 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
ID: 2637024
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

830 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