how can i create function that can show parameter value in drop down? i have seen many times but don't know how to create one..
Are you referring to the intellisense like in the Visual Basic 6 IDE?
Originally Posted by Hell-Lord Are you referring to the intellisense like in the Visual Basic 6 IDE? Exactly Like when we specify paramerter in msgbox
This link discusses intellisense and some helpful code examples
You need to create an enum: Code: Private Enum SomeType SomeValue = 1 OtherValue = 2 End Enum Then when adding the parameter to your function, set it as this type. Code: Function MyFunction(aParameter As SomeType) As Integer MyFunction = aParameter End Function In which case, the return value for MyFunction will be either 1 or 2 in integer type. Let me know if this is what you wanted to know...
Private Enum SomeType SomeValue = 1 OtherValue = 2 End Enum
Function MyFunction(aParameter As SomeType) As Integer MyFunction = aParameter End Function
Stop being smart in a thread full of dumb. You look stupid. - Timeshifter The best way to get rid of temptation is to give in to it.. in this case, rather permanently. - MaximilianMayrhofer All the chest hair in Turkey cannot crinkle enough in response to that. - Mendhak Stop taking photographs of my mother! - Kregg The point is to keep the back wheels firmly pinned to the road so that all of the mammoth power of the 1.6litre Ford Escort can be harnessed for maximum acceleration out of corners - Wossname Corn turns your anus into a machine gun. - VisualAd
Thanks bill thats what i am looking for
Forum Rules