Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21970

[RESOLVED] Vb6 - shellexecute doesnt like "&"

$
0
0
Hi

I was trying to send an email thru shellexecute and I found out that if the text being sent contains a "&", shellexecute will just stop reading beyond &.
I don't know why (Im not familiar with shellexecute)

In my particular case, the example is:

ShellExecute 0&, vbNullString, emailaddress & "?subject=" & MailSub.TEXT & "&body=" & Replace(MailTEXT.TEXT, vbCrLf, "%0A"), vbNullString, vbNullString, SW_SHOWNORMAL

I thought it could be useful to know for other VB6 users too.

Regards


Horazio

Viewing all articles
Browse latest Browse all 21970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>