>>>Is there are way you can execute a marco-substitution in c#, like you can in VFP?
>>>In VFP it's something like this:
>>>
>>>use sometable
>>>lcCmd = "BROWSE"
>>>&lcCmd
>>>
>>>
>>>Is there a way you can do something like it in c#?
>>>
>>>Thanks.
>>
>>I have been programming C# (not full time since I do tons of VFP work as well) since 2005. And I don't remember a case where I would need to have the VFP-like macro feature in C#. Unless your question is academic, it would help to see an example of what you are trying to to.
>
>Dmitry/(and Viv)
>
>Before Generics came around, there were scenarios where reflection really helped. But the combination of generics and interfaces often reduces the # of instances where it's necessary. Using generics can mean giving a serious second look at a design, and it's usually worth it.
Don't know what Sandy wants to achieve but I'm having difficulty in seeing how generics might help? An interface with related classes could help - but using delegates might be simpler and more flexible ?
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