Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4787

Read array in sequence, and convert it's contents into single variable?

$
0
0
Hello, say I have 32 bit array, in each of it's "cells" is written either 1 or 0. I want to read this array in a way, that these cells add next to each other. Say, content of first 4 cells is "1" "1" "0" "1". How can I convert it into single byte variable, which will read as "1101" ?. If there were string variables, then task would be simple, by just reading current array position into string variable, and adding to itself. But in PBP we don't have string variables, how should I ?

Viewing all articles
Browse latest Browse all 4787

Trending Articles