G
Grant Mills
I'm trying to get linefeeds to display correctly in a datagrid (text is
taken from a database of text that has been htmlencoded)
By default it doesn't display them. But <br/> tags display fine.
however, when I do
validated.Replace(vbCrLf, "<br/>")
or
validated.Replace(chr(10), "<br/>")
or
validated.Replace(chr(13), "<")
or even a function with this
While (posistion < validated.Length And posistion > -1)
posistion = validated.IndexOf(vbcrlf, posistion) (tried the other
combinations)
If posistion = -1 Then
Exit While
End If
validated.Remove(posistion, 1)
validated.Insert(posistion, "<br/>")
posistion = posistion + 5
End While
None of that seems to remove and replace at all.. can anyone suggest what I
can do?
taken from a database of text that has been htmlencoded)
By default it doesn't display them. But <br/> tags display fine.
however, when I do
validated.Replace(vbCrLf, "<br/>")
or
validated.Replace(chr(10), "<br/>")
or
validated.Replace(chr(13), "<")
or even a function with this
While (posistion < validated.Length And posistion > -1)
posistion = validated.IndexOf(vbcrlf, posistion) (tried the other
combinations)
If posistion = -1 Then
Exit While
End If
validated.Remove(posistion, 1)
validated.Insert(posistion, "<br/>")
posistion = posistion + 5
End While
None of that seems to remove and replace at all.. can anyone suggest what I
can do?