Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Aask  
#1 Posted : Saturday, January 12, 2019 3:08:51 PM(UTC)
Aask

Rank: Newbie

Groups: Registered
Joined: 11/14/2018(UTC)
Posts: 9

The method LoadFromArray appears to set the cell type in accordance with the value type of the element of the array that it loads.

The InputValidationError event passes lConvErr (a integer error code) and sErrDescr (a string containing the error description) to the event handler. That is, it does not pass the value of the cell before the change.

How does the error handler:

1. reset the cell value to what it was or undo the change?
2. NOT display an error message (choosing instead to change the background colour of the cell)?

Edited by user Saturday, January 12, 2019 3:12:15 PM(UTC)  | Reason: Not specified

Igor/10Tec  
#2 Posted : Tuesday, January 15, 2019 8:03:55 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 997

Thanks: 13 times
Was thanked: 130 time(s) in 130 post(s)
It's not clear what you want to do. Can you describe your problem in details?

The purpose of the LoadFromArray method is to populate iGrid cells with the values from the specified array AS QUICK AS POSSIBLE. Generally this method is used to speed up code execution when you need to set values for a range of cells. In this case the method works much faster compared to an equivalent loop in which you call the CellValue property.

To provide the best performance, iGrid does not coerce a value from the array to the type of the corresponding cell value if it was specified before. Array values are simply copied to iGrid "as is". And sure, the logic that checks the entered value is not used in this case too.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.