1
Visual Basic 6 / Re:[BETA] ucListView 3
« en: Abril 15, 2014, 05:41:34 pm »
Иногда возникает ошибка в Function pvSortingCallback.
Ошибка сортировки неправильный тип.
Возможно нужно исправить на это
A veces, hay un error en el pvSortingCallback Funcion.
Error de clasificacion del tipo equivocado.
Tal vez usted necesita para arreglarlo
Sometimes there is an error in the Function pvSortingCallback.
Error sorting the wrong type. Maybe you need to fix it
И здесь возвращается строка из 256 символов
Y aqui se vuelve una cadena de 256 caracteres
And here it returns a string of 256 characters
Ошибка сортировки неправильный тип.
Возможно нужно исправить на это
A veces, hay un error en el pvSortingCallback Funcion.
Error de clasificacion del tipo equivocado.
Tal vez usted necesita para arreglarlo
Sometimes there is an error in the Function pvSortingCallback.
Error sorting the wrong type. Maybe you need to fix it
Código: [Seleccionar]
Case eSortTypeConstants.stNumeric: val1 = Val(val1): val2 = Val(val2)
'=================================================И здесь возвращается строка из 256 символов
Y aqui se vuelve una cadena de 256 caracteres
And here it returns a string of 256 characters
Código: [Seleccionar]
Public Property Get ColumnText(ByVal Column As Long) As String
If m_hListView = 0 Or m_hHeader = 0 Then Exit Property
Dim uLVC As LVCOLUMN
Dim a As String
With uLVC
[b]a = String$(255, Chr(0))[/b]
.pszText = StrPtr(a)
.cchTextMax = Len(a)
.mask = LVCF_TEXT
End With
Call SendMessage(m_hListView, LVM_GETCOLUMN, Column, uLVC)
'Correccion исправление
ColumnText = Left$(a, InStr(2, a, Chr(0), vbBinaryCompare) - 1) ' <<<<<<
End Property
