Raised This Month: $ Target: $400
 0% 

How long is a string?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-26-2005 , 21:32   How long is a string?
Reply With Quote #1

new MyString[10]
format(MyString, 9, "Hello")

Assuming the numbers stand for blank spaces, will MyString return "Hello1234", "Hello12345" or "Hello"?
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 04-26-2005 , 21:42  
Reply With Quote #2

Hello,0 but it'll just return "Hello"
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-26-2005 , 21:50  
Reply With Quote #3

Damn.. is there a way to force it to fill up the rest? because I want to save a bunch of vars to vault, then reload them and parse them apart. Unfortunately, I don't think I can parse them w/o knowing the length... I may have to right my own parse function.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
Reply



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

Forum Jump


All times are GMT -4. The time now is 16:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode