This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by LaserBeam


I did not find anything in the forum or in the docs. Does impact have a .length() method that returns the number of characters in a String?

1 decade ago by Arantor

No, it doesn't have a length() method, primarily because JavaScript doesn't do that for any of its primitive types.

It does, however, do the .length property (no brackets), just like an array. cf ig.Font for some uses of this, notably in ig.Font.widthForString().

1 decade ago by LaserBeam

Thanks for the explanation, .length as a property works fine for me.
Page 1 of 1
« first « previous next › last »