Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically Add Code to a Method
Message
From
31/01/2003 01:37:02
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
30/01/2003 10:22:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00747147
Message ID:
00747531
Views:
13
If you recreate the cursor , I think it is grid reconstruction behavior.
Try to set RecordSource property for the grid to empty string before recreating the cursor and set back after.
WITH ThisForm.YourGrid
	.RecordSource = ""
	*
	* Recreate cursor
	*
	.RecordSource = "YourCursorAlias"
	.refresh
ENDWITH 
>Is it possible to add code to a method on a grid during run time. The grid is based on a cursor and most of the properties are set in the grid 'init' method but it has also got code added to the 'when' event of each 'text1'.
>
>I am recreating this cursor within the program to refresh it with updated data and I can get it all to work okay by forcing a grid1.init() except that the code in the 'when' events seems to get lost.
>
>Is there any way I can write code to methods of the grid while the form is running. Any help gratefully appreciated.
>
>Thanks
>
>Sue Lacy-Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform