Stolao Posted November 15, 2014 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted November 15, 2014 im trying to make the Explode function produce an integer rather then a string EG .@i vs .@i$, and i seem to be having a brain fart, i know ive done this before in a script a while back ideas? Quote Link to comment Share on other sites More sharing options...
Capuche Posted November 15, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 15, 2014 Maybe make a loop to convert the string to int with atoi command explode( .@tmp_string$, "1,2,3,4", "," ); .@size = getarraysize( .@tmp_string$ ); for ( .@i = 0; .@i < .@size; .@i++ ) .@tmp_int[.@i] = atoi( .@tmp_string$[.@i] ); (or use bitwise operator) Quote Link to comment Share on other sites More sharing options...
Stolao Posted November 16, 2014 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Author Share Posted November 16, 2014 Hmm ya i found out they updated the explode to require a string output since my last update, time to update like 20 scripts to new rev. Quote Link to comment Share on other sites More sharing options...
Question
Stolao
im trying to make the Explode function produce an integer rather then a string EG .@i vs .@i$, and i seem to be having a brain fart, i know ive done this before in a script a while back ideas?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.