Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Passing vbCrLf from windev
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Passing vbCrLf from windev

 Post Reply Post Reply
Author
Message
austro View Drop Down
Newbie
Newbie


Joined: 03 October 2008
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote austro Quote  Post ReplyReply Direct Link To This Post Topic: Passing vbCrLf from windev
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2008 at 10:09am
Hi,
Try something like "\r\n"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
austro View Drop Down
Newbie
Newbie


Joined: 03 October 2008
Location: Australia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote austro Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.