ponda199 3 Posted December 6, 2016 Report Share Posted December 6, 2016 Hey hey! :-) is there a way to edit the number format from 1,2,3,10, ... to something like this: 001,002,003,010,...Don't know how to explain, but i think you know what i mean Thanks buddys! Quote Link to post Share on other sites
Bot-Factory 602 Posted December 6, 2016 Report Share Posted December 6, 2016 Hi. Where do you want to change that? Like in a variable when you store a number?Or do you talk about converting an existing variable like 1 into 001? Please explain that a bit further so that we can help you. Dan Quote Link to post Share on other sites
stanf 43 Posted December 7, 2016 Report Share Posted December 7, 2016 this can be done with a couple if/then statements and the $string pad functionif number lest than 10 then pad with zeros to the length that you wantand so forthorif the value of the number is not important then just pad the string length to the desired length with the $string pad function when you write the value Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 7, 2016 Report Share Posted December 7, 2016 You can use the $pad text function to do this: http://wiki.ubotstudio.com/wiki/Pad_Text Quote Link to post Share on other sites
stanf 43 Posted December 7, 2016 Report Share Posted December 7, 2016 whats the difference between$pad textvs$string pad Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 7, 2016 Report Share Posted December 7, 2016 whats the difference between$pad textvs$string pad Not sure, Is that in a plugin? Quote Link to post Share on other sites
stanf 43 Posted December 7, 2016 Report Share Posted December 7, 2016 Not sure, Is that in a plugin?never mindits one of pash's goodiesthats the problem when you own all the plugins 1 Quote Link to post Share on other sites
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.