Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in c#
Message
From
14/07/2016 04:09:07
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01638288
Message ID:
01638372
Views:
67
>>>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
Map
View

Click here to load this message in the networking platform