| View previous topic :: View next topic |
| Author |
Message |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 01, 2003 12:53 pm Post subject: @CR vs @LF() |
|
|
@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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Sep 01, 2003 2:46 pm Post subject: |
|
|
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 :
| 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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 01, 2003 4:46 pm Post subject: |
|
|
I knew LF stands for line feed but was wondering how it can be used in VDS.
Thanks for the Info
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Sep 02, 2003 8:02 am Post subject: |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Sep 02, 2003 12:27 pm Post subject: |
|
|
Thanx jules for the info
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|