Max javascript string conversion?

Jan 27, 2006 at 10:42pm

Max javascript string conversion?

In normal java script I can take a string and do the following…

foo = “123″;
bar = Integer.parseInt(foo);

bar then holds the interger conversion of the
string. When I make this call in Max, Max does
not understand the function parseInt. Is there
an equivalent set of functions I can use in MAX?

Anthony

#24135
Jan 28, 2006 at 12:43pm

This works for me:

foo = “123″;
bar = parseInt(foo);

Integer.parseInt() is the Java method, isn’t it?

HTH,
ej

#69358

You must be logged in to reply to this topic.