Help with variables.
Posted: Thu Nov 04, 2010 10:04 am
I am not sure if Qbasic is able to do this, but here is what I need to do.
I would like to take a variable and break it in to pieces.
Example:
X = 325
I want to cut that up to make three more variables as follows
A = 3
B = 2
C = 5
I assume there is a way to do this using something similar to the LEFT$/RIGHT$ function, but I don?t know what that would be.
Any help would be greatly appreciated.
Thanks,
Jeff
I would like to take a variable and break it in to pieces.
Example:
X = 325
I want to cut that up to make three more variables as follows
A = 3
B = 2
C = 5
I assume there is a way to do this using something similar to the LEFT$/RIGHT$ function, but I don?t know what that would be.
Any help would be greatly appreciated.
Thanks,
Jeff