Raised This Month: $51 Target: $400
 12% 

Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 05-21-2016 , 04:09   Help
Reply With Quote #1

For example:

PHP Code:
new szString]
formatexszString charsmaxszString ) , "AB" 
Then:

szString[ 1 ] is B
szString[ 0 ] is AB

Question:

How to get only A ?

Last edited by Ghosted; 05-21-2016 at 08:35.
Ghosted is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-21-2016 , 07:00   Re: Help
Reply With Quote #2

It depends. If you use it with a string function it will read it as a string (until it reaches NULL). But szString[0] is 'A'.
When printing it use %c for character instead of %s for string.
I need more information from you to fullt help you.
In the future, this goes in scripting help.
__________________
Black Rose is offline
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 23:58.


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