General information
Category:
Visual FoxPro and .NET
Google on IronPython, and then take a look at the mail list archives. What you will find is that the capability does exist within .Net, with no effort on your part other than including the IronPython assembly. Pretty amazing stuff.
Also, see Kevin's article in the most recent UT Mag, on the ability to instantiate objects and do things with them from the .Net expression evaluator. That's pretty neat too: not all of what we have, but at least some recognition from MS what .Net is missing.
Hank
>Hi All,
>
>I try to make my first steps in DotNet world and I would like to ask you three (simple ?) questions.
>
>1. In C# (VS 2003) Is possible to execute a method for a control when we have its name in a variable ?
> In my VFP framework I do this:
> IF VARTYPE(thisform.cfrmpanel)="C" then
> lcObjectName = "thisform." + thisform.cFrmPanel
> EVALUATE(lcObjectName + ".OnBeforeClose()")
> ENDIF
>
> Is it possible with C# ?
>
>2. Is possible to add a variable class control in a form like this ?
> > lcPanelName = "myXpanel"
> thisform.AddObject(lcPanelName,lcPanelName)
>
>3. Is there a With Statement (or equivalent) in C# ?
>
> lcObjectName = "thisform." + lcPanelName
> IF VARTYPE(lcObjectName)="O" THEN
> WITH &lcObjectName
> .top = this.xpanel_guide1.Top
> .left = this.xpanel_guide1.Left
> .width = this.xpanel_guide1.Width
> ENDWITH
> ENDIF
>
>Thanks in Advance
>Vassilis Aggelakos
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