I'm saving a Global Value as a 4 digit number to represent 4 different resource values you collect when you collide with a special resource block.
The 4 digits represent a modifier to each of your 4 resources, e.g. 1221 would translate into +1 gold, +2 for blue & green and +1 purple.
When you collide with the special block, I'm adding the Global value to the resource, but taking just the appropriate digit - so on your gold counter, I need the first digit of the global value, for blue I need the 2nd digit.
How can I do this with a simple expression, and without converting to a string or use fast loops. Also this is an XNA project, so I have access to limited extensions.
edit: I tried it with a string conversion and it works okay (add to counter: Val(Mid$(Str$(Global Value), 0, 1))), but is this bad coding? Converting a value to a string, taking part of that string and reconverting to a value..? Seems a bit roundabout to me and I'm trying to avoid clogging the engine again.

