You must have a large number of functions.
If you created the functions then you could make
a single one and have a parameter for
it that selects the code for it right in the function.
This is one way around this, I have never been
able to call a function as a variable even with
the older basic eg. QB
Did you get your beans Today?
>Is there any approach to avoid cases
>> Hi Abdul:
>> If you want to run a sub or function based on a
>> variable you can use the select case in eVB:
>> Select Case Trim(ProcedureName)
>> Case "DoIt"
>> Call DoIt()
>> Case "SetPointer"
>> Call SetPointer()
>> case else
>> Call Nothing()
>> End Select
>> Good Luck!
>> Vincent Collura
>> Did you get your beans Today?
>> >Hello experts,
>> >I have developing application in EVB 3.0 for Pocket PC, I have a query
>> >I have so many sub procedures but these procedures are not hardcoded
>> >calling, its dependent on one variable "Procedure_name" as string, so as
>> >know that we can call sub procedure by this syntax
>> >call <procedure_name>
>> >But the procedure name is not fixed at design time, so how can I call
>> >runtime procedure name. Remember that all procedures are defined at
>> >time but calling to that procedures is depending on one variable
>> >Abdul Lateef