Raised This Month: $ Target: $400
 0% 

Empty string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 06-29-2012 , 13:19   Empty string
Reply With Quote #1

This seems like a silly question. But a question i've been having trouble figuring out...

How do i determine if a string is empty?

Code:
if(equali(string, "") ) // throws warnings
Code:
if(sizeof string < 2) // Throws 3 warnings
Code:
if(string[0]) // simply doesn't work
Code:
if(charsmax(string) < 2) // Throws errors & warnings
all of these are proceeded with
Code:
		formatex(string, charsmax(string), "[page]")
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 06-29-2012 at 13:19.
Liverwiz is offline
 



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 15:21.


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