ItemChanged Event
Return codes
Return Code |
Action |
0 |
Accept the data value |
1 |
Reject the data value |
2 |
Reject the data value but let the focus change |
Event Sequences
Retrieve()
- RetrieveStart
- Return 1 to stop retrieval
- Return 2 to retrieve without reset
- Continue reading
RowFocusChanging Event
This fires before a row changes focus
Return codes
1 = stop the row focus form changing
Arguments
CurrrentRow
NewRow
Other Event
Mouse Scroll Wheel (other event)
The user can hold down control and then use the mouse scroll wheel to zoom in or out. This can be disabled with the code below. If you want to disable the scroll wheel all together, you would just remove “AND KeyDown(KeyControl!) ” from the code.
// dw's "other" event CONSTANT integer LCI_MOUSEWHEEL = 522 IF message.number = LCI_MOUSEWHEEL AND & KeyDown (KeyControl!) THEN message.processed = TRUE RETURN 1 END IF
RetrieveStart Event
How do I append data to a datawindow
In the RetrieveStart event the return code must be 2
Return 2
Return Codes
0 – (Default) Continue.
1 – Do not perform the retrieval.
2 – Do not reset the rows and buffers before retrieving the data from the database.
Error Event
When does the Error event fire?
The Error Event occurs at execution time as the result of syntax errors in DataWindow property expressions and DataWindow data expressions. If you refer to a nonexistent object, misspell a property name or reference nonexistent data the Error event fires.
Dw_1.Object.emp_id.Visible=’0’
DBError Event
The DBError event fires in a DataWindow when a database error occurs as a result of an Update( ).
Continue reading
-
Archives
- August 2009 (2)
- May 2009 (1)
- March 2009 (1)
- January 2009 (2)
- December 2008 (1)
- November 2008 (2)
- September 2008 (1)
- August 2008 (1)
- July 2008 (24)
- June 2008 (22)
- May 2008 (69)
- April 2008 (25)
-
Categories
-
RSS
Entries RSS
Comments RSS