Advertisement

Sponsors




Go Back   Zune Boards > Zune Discussions > Zune Games > Development Discussions > Development Help

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Development Help For help from coding to error finding to that one thing you just can't get right

Reply
 
LinkBack Thread Tools
Old 11-26-2008, 04:21 PM   #1 (permalink)
Squirt
 
ikofthetoids's Avatar
 
Join Date: Aug 2008
Posts: 18
Reputation: 10
Default Storing long blocks of letters

Trying to make a notepad app.
Don't know what to store the entered text as.
Could store it as a really long string.
Don't think that would be a good idea.
I want to include stuff like italics and indentations in the text.
is there anything like rich text format i could store it in?
Any help?

I'm a minimalist writer...




ikofthetoids is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 11-26-2008, 04:59 PM   #2 (permalink)
Jr. Member
 
Join Date: Jun 2007
Location: Mass
Posts: 331
Reputation: 88
Default

As far as variable declaration goes, the entire text should be stored as a string, there is no rich text format string. For displaying this data, you would need to parse the italics and underlines your self, which could be messy.
__________________
~Shutout5591~

[FINAL] Asteroids 1.0
If you like me work or I have helped you, + Rep me!




shutout5591 is offline   Reply With Quote
Old 11-26-2008, 06:25 PM   #3 (permalink)
you lost the game.
zB Programmer
Moderator
Elite Zuner
 
itsnotabigtruck's Avatar
 
Join Date: May 2008
Posts: 2,355
Reputation: 866
Default

There isn't any out-of-the-box solution for that, so you're going to need to roll your own. I'd assume you'd store the text as a series of objects each containing a string with a block of text plus the formatting properties for that text.
__________________

signature by vettexl




itsnotabigtruck is offline   Reply With Quote
Old 11-26-2008, 06:51 PM   #4 (permalink)
Squirt
 
ikofthetoids's Avatar
 
Join Date: Aug 2008
Posts: 18
Reputation: 10
Default

Quote:
Originally Posted by itsnotabigtruck View Post
I'd assume you'd store the text as a series of objects each containing a string with a block of text plus the formatting properties for that text.
Good idea.
Didn't think about that.
Cudos...


+rep both of you.
__________________
"I arrive in America's airport with clothings, U.S. dollars, and a jar a gypsy tears to protect me from AIDS" -- Borat





ikofthetoids is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -8. The time now is 04:19 PM.

 
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community