Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Problem with the CellConv property in the EditTable Control

I was attempting to place a Boolean data conversion on a column in an SRP EditTable Control, using the CellConv Property. The OLE help for the property indicates that the array passed with the CellConv property has position 1 as the input conversion, position 2 as the output conversion, and position 3 as the invalid data message. (There are a couple more options to pass in the array, but they don't matter to me right now.) Therefore, the string I'm passing in the Set_Property
statement looks like:"B":@FM:"B":@FM:" Error message text" yielding a Set_Property statement like:Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellConv[3, All]", "B":@FM:"B":@FM:"Error message text") The output conversion and the error message are working OK, but the input conversion accepts anything except a 0 (zero) as a True or Yes answer. Shouldn't this conversion allow the user to enter N or No as well as zero?

Comments

  • The SRP EditTable accomplishes validation using a DLL call within RevShell.dll called Validate. This method is similar to IConv, but not an exact equivalent. So, as it turns out, you've discovered that Validate does not work the same on boolean types as IConv.

    The work around is to create a custom conversion, such as MyBoolean, and use that instead:

    Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellConv[3, All]", "[MyBoolean]":@FM:"[MyBoolean]":@FM:"Error message text")
Sign In or Register to comment.