General information
Category:
Coding, syntax & commands
Eric,
Thanks, that helps. Also, I appreciate all the other tips you have put up there!
Can I get a little more clarification?
1) If a form is in a project, is it opened (but not shown?) If so, then if I want the form to go away until the next call should I use .hide or .unload? Is there a difference?
2) Is there a way to associate a textbox with a property or variable? So that when the textbox is edited, the variable/property is updated instead of having to assign the .text value to the variable/property via some function call.
Thanks again,
Fletcher
>Look in the FAQ (or in the downloads) for a message I have posted that use a form like a function. It will answer most of your questions.
>
>I can't give you the exact URL now because FAQ and Downloads are not accessible.
>
>>Hi all,
>>
>>I have a form with two buttons. One says Add, the other Edit. They then call a form named frmEdit. But if this is an Add, I want to pass a parameter to the form to tell it to treat things as an Add (vs. Edit mode.)
>>
>>If I call the forms show method, it appears, but in Edit mode. I can add code after the .show call that then changes the properties, but this only works if the form is not modal.
>>
>>So my questions are:
>>
>>1) Can I "open"/instantiate a form without it first being visible?
>>2) Can I pass a parameter to a form (via the Load or non-existant show method)?
>>3) Can I access the .Show method I call to make the form appear even though it is not in the list of available methods? In other words, can I just create a form_show with a set of arguments?
>>4) What would I do if the form were to be modal (or is it persist?)
>>5) Is there a better way to call up a form other than using the .Show method?
>>6) The load is the first method that fires when a form is created. The activate fires everytime the form is activated (I think.) Is there a place I can write code that only executs once, but after all the controls have been instantiated?
>>
>>Thanks,
>>
>>Fletcher
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only