imohamed
2014-03-18T11:44:29Z
I am having an issue with the eTextEditOpt parameter of RequestEdit. My implementation is simple:

Private Sub iGrid1_RequestEdit( _
        ByVal lRow As Long, _
        ByVal lCol As Long, _
        ByVal lCharCode As Long, _
        ByRef bCancel As Boolean, _
        ByRef sText As String, _
        ByRef lMaxLength As Long, _
        ByRef eTextEditOpt As ETextEditFlags)

        eTextEditOpt = igTextEditUpperCase

End Sub
The parameter does not affect the input, text is not in uppercase as the user types. I've also tried the Number only and Lower Case but they do not work either. Finally, I found that the other parameters in this event are working. bCancel, sText, and lMaxLength all work as expected.

Let me know if I am missing something.

Thanks,
Imran
imohamed
2014-03-18T14:27:17Z
Just to make sure I didn't have a screwed up reference somewhere, I decided to write some code that focused on the issue:

Option Compare Database
Option Explicit


Private Sub Form_Load()
    
    With iGrid2
        Call .AddCol(sKey:="Number", sHeader:="Number")
        Call .AddCol(sKey:="Upper", sHeader:="Upper")
        Call .AddCol(sKey:="Lower", sHeader:="Lower")
    
        .RowCount = 10
    End With
    
    
End Sub

Private Sub iGrid2_RequestEdit( _
        ByVal lRow As Long, _
        ByVal lCol As Long, _
        ByVal lCharCode As Long, _
        ByRef bCancel As Boolean, _
        ByRef sText As String, _
        ByRef lMaxLength As Long, _
        ByRef eTextEditOpt As ETextEditFlags)

        With iGrid2
            Select Case .ColKey(lCol)
                Case "Number"
                    eTextEditOpt = igTextEditNumberOnly
                Case "Upper"
                    eTextEditOpt = igTextEditUpperCase
                Case "Lower"
                    eTextEditOpt = igTextEditNumberOnly
            End Select
        End With
        
End Sub

When I step through it, eTextEditOpt is set appropriately for each column edit but it does not seem to take effect.

Thanks
Igor/10Tec
2014-03-18T15:04:55Z
I have just reproduced this. I confirm that it is a problem on our side.

After analyzing the code, I see that the feature should work. The corresponding WinAPI flags like ES_NUMBER or ES_UPPERCASE are set for the textbox cell editor, but it seems they do not have any effect.

We need some time to figure out why the code that has worked for years stopped working. Give us a day or two to investigate the issue, and we'll definitely get you back as soon as we have any result.
Igor/10Tec
2014-03-19T12:52:35Z
The problem was fixed in today's internal build of iGrid. A link to it has been just sent to you email address.
2014-04-14T19:31:17Z
I have the same problem

What is the solution?
Igor/10Tec
2014-04-15T07:12:56Z
The problem has been fixed in the v5.0.90 we published 3 days ago on Apr-14, 2014.

Registered customers can obtain the link to the retail version via the tech support service.