Passing vbCrLf from windev |
Post Reply |
Author | |
austro
Newbie Joined: 03 October 2008 Location: Australia Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 07 October 2008 at 4:50am |
Hi
I am having a lot of trouble sending a vbCrLf for a line break, here is my code
PROCEDURE LP_CalGetItem(lpautParams=AX_Calendar>>GetItemTextParams)IF lpautParams>>Item=1 THEN lpautParams>>Text="Ref. No: "+lpautParams>>ViewEvent>>Event>>Id+vbCrlf+lpautParams>>ViewEvent>>Event>>SubjectELSE IF lpautParams>>Item=2 THEN lpautParams>>Text="Location: "+lpautParams>>ViewEvent>>Event>>Location+lpautParams>>TextELSE IF lpautParams>>Item = 64 THEN lpautParams>>Text = "(" + lpautParams>>ViewEvent>>Even>>Location +... lpautParams>>ViewEvent>>Event>>Subject +... " [" + lpautParams>>ViewEvent>>Event>>Id + "]"E NDIf put the vbCrLf code in as above Windev will not compile it as it does not recognise it as a constant. If I use quotes then it comes out as text. I have tried all sorts of combinations. I tried Charact(13) + Charact(10) but that also came out as text. Are there any esc characters I can put around the quotes so the activex control will ignore them?
Any ideas would be appreciated.
Regards
Mark
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Try something like "\r\n"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
austro
Newbie Joined: 03 October 2008 Location: Australia Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Hi
Thanks for you reply.
I have tried that along with commands CR or CRLF which are constants in Windev. The CR and CRLF renderas a small square and the "\r\n" rendered as text.
I think it has to be a command that is in vb and sent so vb reads it as a constant.
Regards
Mark
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |