forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


@CR vs @LF()

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 01, 2003 12:53 pm    Post subject: @CR vs @LF() Reply with quote

@CR vs @LF()

What is the difference between @CR() and @LF()
Are there any situations in which latter is helpful.
Help file doesn't speak anyhting.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Sep 01, 2003 2:46 pm    Post subject: Reply with quote

If you look at the ASCII values of each, you'll see that they're different
characters:

Code:
info @asc(@CR())
info @asc(@LF())


You'll also find that if you ever need to make another line in an edit
box with a MULTI style, you're going to have to make the string
line1@cr()@lf()line2, like this example illustrates Smile :

Code:
  DIALOG CREATE,Multi-Line Example,-1,0,223,146
  DIALOG ADD,EDIT,EDIT1,22,22,180,68,,,MULTI
  DIALOG ADD,BUTTON,Close,100,76,64,24,Close
  DIALOG SHOW
  dialog set,edit1,line1@cr()@lf()line2
  wait event
  exit

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Sep 01, 2003 3:00 pm    Post subject: Reply with quote

THe @lf() function is basicly the same as @chr(13)@chr(10) / @cr()@chr(10). The "lf" stands for Line Feed, which is the character @chr(10). Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 01, 2003 4:46 pm    Post subject: Reply with quote

I knew LF stands for line feed but was wondering how it can be used in VDS.
Thanks for the Info Smile
Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Sep 02, 2003 8:02 am    Post subject: Reply with quote

It's really for creating files. When formatting text to display in a message box, @cr() is usually enough, but if you are creatibg a text file using some method other than a string list then each line has to be terminated by @cr()@lf().
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Sep 02, 2003 12:27 pm    Post subject: Reply with quote

Thanx jules for the info
Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group