Yudi,
Ok, In Visual Foxpro if i write this code :
Local mApp AS String
mApp = "DO Report.App"
If I Write &mApp it has the same mean with Do Report.App, how can i do
this in C# ?
Here is one way to do it:
// declare the delegate to return a string assuming that
// Do Report.App returns a string.
public delegate string ReportAppDelegate( );
....
// Create the delegate that will be used to execute the code.
ReportAppDelegate myApp = new ReportAppDelegate( Report.App );
.....
// execute the code -- you could also pass the delegate
// around before you execute the code.
myApp( );
Another way to accomplish this is through reflection. Hope that helps.
Regards,
Randy