Jump to content
Sign in to follow this  
GmOcean

explode to push arraysize

Recommended Posts

I just wanna suggest that the *explode script command, should push the array size of the one it creates. So that things like this are possible:

.@a = 10;while( .@b != .@a ) {	.@menu$ = .@menu$ +""+ .@b +":";	.@b++;}.@menu$ = .@menu$ +"Last Option";if( select( .@menu$ ) == ( .@size = explode( .@temp$, .@menu$, ":" ) ) ) { close; } // Clicked Last Option in list.

vs what we have to do now:

.@a = 10;while( .@b != .@a ) {	.@menu$ = .@menu$ +""+ .@b +":";	.@b++;}.@menu$ = .@menu$ +"last Option";explode( .@temp$, .@menu$, ":" );if( select( .@menu$ ) == getarraysize( .@temp$ ) ){ close; } // Clicked Last Option in list.

 

It's not really " needed " more of just a feature I think it should have since commands like query_sql have it. I figure why not give it the extra feature since it's not a downgrade nor does it break backwards compatibility.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.