•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 403,519 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,807 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 99 | Replies: 0
![]() |
I want to make functions easy to use. So for summarizing about the function I'm using
Code
I want to enable a feature for the function that if a variable say 'Var1' can take values from a list (val1,val2,val3,val4) than if user writes the function name it must display the list to choose the value from the list.
Like if we declare a variable bFlag of type Boolean and later when we write 'bFlag=' it automatically displays two options 'True and Flase' user just has to select one and no need to write whole string. Similarly in 'msgbox' after writing string when user presses ',' then a list is displayed to select one of the MsgBoxStyle from the list.
So I need to enable the user for similar cases when I've predefined set of values for some argument of the variable.
can anybody help me to enable this feature in the function call writing.
Code
''' ----------------------------------------------------------------------------- ''' <summary> ''' ''' </summary> ''' <param name=""> </param> '''-----------------------------------------------------------------------------
I want to enable a feature for the function that if a variable say 'Var1' can take values from a list (val1,val2,val3,val4) than if user writes the function name it must display the list to choose the value from the list.
Like if we declare a variable bFlag of type Boolean and later when we write 'bFlag=' it automatically displays two options 'True and Flase' user just has to select one and no need to write whole string. Similarly in 'msgbox' after writing string when user presses ',' then a list is displayed to select one of the MsgBoxStyle from the list.
So I need to enable the user for similar cases when I've predefined set of values for some argument of the variable.
can anybody help me to enable this feature in the function call writing.
Last edited by jivangoyal : Jul 9th, 2008 at 2:45 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- CODING QUESTION: What is the MOST importanting thing to do when...... (Computer Science and Software Design)
- So drunk. Still coding. (Geeks' Lounge)
- Help Needed Urgently With Coding (Java)
- C++ Coding :: First Ever (C++)
- Is their a way to earn money from freelance VB coding on the net (Visual Basic 4 / 5 / 6)
Other Threads in the VB.NET Forum
- Previous Thread: textbox input to be saved to Access database in VB.NET
- Next Thread: DateField is not getting Filtered in DataView


Linear Mode