Randomblink
The Irreverent Reverend
- Local time
- Yesterday, 19:16
- Joined
- Jul 23, 2001
- Messages
- 279
When you put a MsgBox in code, you start typing...
MsgBox "<insert Prompt Here>",------
as soon as you enter that last comma (like above) a little window pops down...
This window lists out ALL the different types of MsgBoxes you can generate...
VBOk
vbCritical
etc...
How do I set up a function to list similar out...?
For instance...
If I create a paint function to, let's say, paint the BackColor of objects...How could I set it so that...
as I call the function like this...
Paint (FieldName, ----
That after hitting the second comma a list of colors pops down...
Then after selecting a color from the list is paints the back color to that color...?
Here is an example code to hopefully better explain...
Public Function Paint (fld As Control, clr As NamedArgument?)
fld.BackColor = clr
End Function
What code would I enter to finish this Function to give it named arguments...
OH, and I might be mis-using the words Named Arguments...
So if this is called something else, please enlighten me...
I have never been taught VB, I just learned it on my own...
Thanks!
MsgBox "<insert Prompt Here>",------
as soon as you enter that last comma (like above) a little window pops down...
This window lists out ALL the different types of MsgBoxes you can generate...
VBOk
vbCritical
etc...
How do I set up a function to list similar out...?
For instance...
If I create a paint function to, let's say, paint the BackColor of objects...How could I set it so that...
as I call the function like this...
Paint (FieldName, ----
That after hitting the second comma a list of colors pops down...
Then after selecting a color from the list is paints the back color to that color...?
Here is an example code to hopefully better explain...
Public Function Paint (fld As Control, clr As NamedArgument?)
fld.BackColor = clr
End Function
What code would I enter to finish this Function to give it named arguments...
OH, and I might be mis-using the words Named Arguments...
So if this is called something else, please enlighten me...
I have never been taught VB, I just learned it on my own...
Thanks!