Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EventTracking question
Message
From
21/01/2003 10:25:20
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00743747
Message ID:
00743760
Views:
8
>>Hi all,
>>
>>Does SET EVENTTRACKING tracks all events of an object? In my test, the AfterRowColChange/BeforeRowColChange events weren't listed in the result.
>>
>>TIA,
>
>It should. See VFP Help on SET EVENTLIST or see Event Tracking under Tools in the Debugger to select what to track.

My test still does not show the events in question. Consider to following code snippet. You may copy and run it in VFP.
clear
close databases all 

create cursor test (f1 c(10), f2 i)
insert into test values ('Hello',1)
insert into test values ('World',2)
go top

set eventlist to afterrowcolchange,beforerowcolchange additive
set eventtracking on
set eventtracking to 'c:\events.log'

public oform1
oform1=newobject("form1")
oform1.show

read events

set eventtracking to
set eventtracking off

modify file c:\events.log

define class form1 as form

	height = 171
	width = 375
	docreate = .t.
	autocenter = .t.
	caption = "Form1"
	name = "Form1"

	add object grid2 as grid with ;
		height = 108, ;
		left = 12, ;
		top = 12, ;
		width = 348, ;
		name = "Grid2"

	procedure destroy
		clear events
	endproc

enddefine
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform