'trim error'
Hi Margret I also had this problem and followed your great advice but I still get the problem with 'trim' not being declared.
I loaded your 'S' module but no difference.
I did load up your string utilities demo and that works fine.
What am I missing, apart from grey cells?
I am desperately trying to send a simple email from my app but just cannot get it right.
Thanks:sign0161:
Here is the error message when compiling
Compiling code. Error
Error parsing program.
Error description: Undeclared variable 'trim' is used before it was assigned any value.
Occurred on line: 283
ei.To.Add(Trim(SendTO))
and here is your sub code
Sub SendMail(SendTo As String, SendBody As String, SendSub As String, SendAtt As String)
Dim ei As Email
ei.To.Add(Trim(SendTO))
ei.Body = SendBody
ei.Subject = Trim(SendSub)
If SendAtt <> "" Then
ei.Attachments.Add(SendAtt)
End If
StartActivity(ei.GetIntent)