Print Page | Close Window

Passing vbCrLf from windev

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=12355
Printed Date: 07 October 2024 at 5:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Passing vbCrLf from windev
Posted By: austro
Subject: Passing vbCrLf from windev
Date 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>>Subject

ELSE IF lpautParams>>Item=2 THEN

lpautParams>>Text="Location: "+lpautParams>>ViewEvent>>Event>>Location+lpautParams>>Text

ELSE IF lpautParams>>Item = 64 THEN

lpautParams>>Text = "(" + lpautParams>>ViewEvent>>Even>>Location +...

lpautParams>>ViewEvent>>Event>>Subject +...

" [" + lpautParams>>ViewEvent>>Event>>Id + "]"

 END

If 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



Replies:
Posted By: Oleg
Date Posted: 07 October 2008 at 10:09am
Hi,
Try something like "\r\n"


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: austro
Date Posted: 07 October 2008 at 4:33pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net