Hi! I've a little porblem i want somw help with... I have done so when someone leaves a message and includes the signatur it will be a line between. BUT! It also happens when they don't inlude the signature and that's my problem i dont wan't it to show when they don't include the signature...
Someone who can help me?
Ooops here is the code: txtMessage = txtMessage & vbCrLf & vbCrLf & "<hr noshade color=""#000000"" size=""1"">" & vbCrLf & ChkString(GetSig(STRdbntUserName), "signature" )
quote: Hi! I've a little porblem i want somw help with... I have done so when someone leaves a message and includes the signatur it will be a line between. BUT! It also happens when they don't inlude the signature and that's my problem i dont wan't it to show when they don't include the signature...
Someone who can help me?
Ooops here is the code: txtMessage = txtMessage & vbCrLf & vbCrLf & "<hr noshade color=""#000000"" size=""1"">" & vbCrLf & ChkString(GetSig(STRdbntUserName), "signature" )
I love this forum!!! <---««« That's me!
You have to check if the signature is empty or not before appending the <hr> tag. Something like that:
strTempSignature = ChkString(GetSig(STRdbntUserName), "signature" ) if strTempSignature <> "" then txtMessage = txtMessage & vbCrLf & vbCrLf & "<hr noshade color=""#000000"" _ size=""1"">" & vbCrLf & strTempSignature end if