Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding code programmatically
Message
From
12/10/2004 06:03:20
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00950358
Message ID:
00950623
Views:
8
Thank You Mark,
But my problem is where to write the execscript() command.
Actually i have a grid class which shows me a list of records.
Till Yesterday I need to exeute something in it's afterrowcolChange event,
and something in the click event of a checkbox i programmatically add to the grid. To do that I create a checkbox object in which I impose it's click event to check a variable containing some code and then if it was not empty process it. The I fill this Property when I add the object programmatically.
Today I want to process something in the doubleclick event of a textbox.
What I wantto avoid was to create a specific class of tetbox, if I only could fill the doubleClick event with some code !!!!!

>You could store code snippets in the memo field of a table, then use EXECSCRIPT() to run the code. You can also use EXECSCRIPT() to run multiple lines of code stored in a property.
>
>>Is it possible to add programmatically code in an Object event ?
>>I'm trying to add a form containing a grid to a form set object, what i'd need to do is to manage the grid afterrowcolchange event adding code to it on fly. Actually i put a property in a form (the form i'm going to add), in which i store the command to execute (i.e. Thisformest.MyProcedure(ListOfParam) ) and i execute by this code i store in the AfterRowCoChange of the grid
>>
>>If !empty(thisform.property)
>> strcom = thisform.property
>> &strcom
>>endif
>>
>>It works but in this way I can manage only a limited number of events.
>>Any Idea ?
>>I Hope I have explained the problem clearly !!
>>
>>Alessio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform