Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / A few questions on strings

Author
Message
Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 15th Feb 2010 22:28
I have a few questions on strings:

1. How do I put a line feed character in a string?

2. How do I insert a line feed every X amount of characters in another string?

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Feb 2010 00:45
1. One way is:

String$ = String$+Chr$(10)+Chr$(13)

(10 is the LF and 13 is the CR).

2. Use the tutorials for basic stuff like this:

http://forum.thegamecreators.com/?m=forum_view&t=96009&b=7

TDK

Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 16th Feb 2010 01:45
Thanks!

My code isn't working properly, I'm trying to make it so once text hits the edge of the screen, it will add a new line to it.

Here's my code:


TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Feb 2010 15:07
This might give you a few clues:

http://forum.thegamecreators.com/?m=forum_view&t=122891&b=6

It's for DBC, but should work just the same in DBPro.

TDK

Mew151
16
Years of Service
User Offline
Joined: 1st Jun 2008
Location: Glitch city
Posted: 20th Feb 2010 22:25
No matter what I try, I can't get it to work.
Here's my code:



Login to post a reply

Server time is: 2024-11-24 20:59:49
Your offset time is: 2024-11-24 20:59:49