Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to alphabetically compare two strings in Actionscript 3

I used strcmp(x,y) in C++. Do you know how to do that in as3?

Thanks!

like image 970
Loop Avatar asked Dec 02 '22 04:12

Loop


1 Answers

If it's a simple string compare you're after, don't bother writing one yourself.

var result:int = ObjectUtil.compare("stringA","stringB");

That achieves what you're looking for.

like image 200
Marty Pitt Avatar answered Dec 03 '22 17:12

Marty Pitt