biboymusic
Junior Member level 1
Need Help: MikroBasic variable splitting / Interrupt
Hi,
Can anyone teach me how to split a variable?
Here's the scenario. I want to calculate something and the result ex. 135 is stored on a certain variable (myvar = 135). Now, how do I split each character onto single variables? Like, var1 = 1, var2 = 3, var3 = 5. The splitted variables should be as integer or anything in which I could calculate with them.
Splitted variables are best be "as byte" or "as integer". Please include also declarations so that I would know what type of variable I have to use (word, string, integer etc.)
Cheers!
Hi,
Can anyone teach me how to split a variable?
Here's the scenario. I want to calculate something and the result ex. 135 is stored on a certain variable (myvar = 135). Now, how do I split each character onto single variables? Like, var1 = 1, var2 = 3, var3 = 5. The splitted variables should be as integer or anything in which I could calculate with them.
Splitted variables are best be "as byte" or "as integer". Please include also declarations so that I would know what type of variable I have to use (word, string, integer etc.)
Cheers!
Last edited: