Valore2=Cursor1.getstring("Cosa")
Valore2=Valore2.Replace(Chr(13),"")
ListaCose.AddTwoLines2(Valore2,Valore3,Valore)
Next
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
valore=Cursor1.GetString("Codice")
valore2=Cursor1.getstring("Cosa")
Valore3=Cursor1.getstring("Dove")
If valore2.Length >=30 Then
Valore2=valore2.SubString2(0,30)&"..."
End If
If valore3.Length >=39 Then
Valore3=valore3.SubString2(0,39)&"..."
End If
ListaCose.AddTwoLines2(Valore2.Replace(Chr(13)& Chr(10),""),Valore3,Valore)
Next
Cursor1.Close
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
Valore=Cursor1.GetString("Codice")
Valore2=Cursor1.getstring("Cosa")
Valore2 = Valore2.Replace(Chr(13),"")
Valore2 = Valore2.Replace(Chr(10),"")
Valore3=Cursor1.getstring("Dove")
If Valore2.Length >=30 Then
Valore2=Valore2.SubString2(0,30)&"..."
End If
If Valore3.Length >=39 Then
Valore3=valore3.SubString2(0,39)&"..."
End If
ListaCose.AddTwoLines2(Valore2,Valore3,Valore)
Next
Cursor1.Close
Sub Activity_Create(FirstTime As Boolean)
Dim theline As String
theline = Chr(13) & "We love to go to " & CRLF & " the store." & Chr(9) & Chr(13)
cleanword(theline)
End Sub
Sub cleanword(bigword As String)
Dim c As Int
Dim BuildWord As String
'
' go through the bigword - character by character
'
Log("##################### START ##################################")
Log("Big Word Length is: " & bigword.Length )
For c = 0 To bigword.Length
' Examine each character that is not
' a valid character and report it to the log
'BuildWord = BuildWord & bigword.CharAt(c)
'Log(BuildWord)
MyASci = Asc(bigword.CharAt(c))
If MyASci < 32 Then Log("**Chr(" & MyASci & ") was found! at Position: " & c )
If MyASci > 126 Then Log("**Chr(" & MyASci & ") was found! at Position: " & c )
Next
End Sub
For c = 0 To bigword.Length
For c = 0 To bigword.Length - 1