• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

parameters

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
makris
Asked:
makris
1 Solution
 
VoodoomanCommented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now