Page 1 of 1

Multi-Line Text String

PostPosted: Sun Aug 21, 2005 4:26 am
by jazz_e_bob
This is an
example of
multi-line output

:?:

How would I define this as a string?

( In BASIC you would use myString = "This is an" & chr$(13) & "example of" & chr$(13) & "multi-line output". )

Thanks.

PostPosted: Sun Aug 21, 2005 4:39 am
by BeyondtheTech
strcpy(text1,"This is an\nexample of\nmulti-line output.");

Be careful not to exceed 255 characters in an strcpy, as it crashes GE.

PostPosted: Sun Aug 21, 2005 6:08 am
by jazz_e_bob
Cheers mate.

:)