I have hit a roadblock, and it is probably something really easy. But I was wondering if I could split incoming text into two labels. Label1 is the incoming bluetooth data. Example (temperature time) <- its a number then a space, then time. I want to split the incoming text where the temperature is in Label1 and after the space, time is in Label2.
Thank you.
--
use the split at spaces block to convert your string into a list
split at spaces
![](https://ci3.googleusercontent.com/proxy/iV7a3GJ2SpwKLzcRP512ZvBhNEg8GTvlncf5IZd7wfO1b1f3TYuua28tDg9-CNbC9gPj_eGgmWmY5f0VCUvA87PO_AWUGUPW89Hsfks6sVFrg5LPJL9BbcqSovc2u6-XLdTB1ZwQFIdKnoq3G8JQ5w=s0-d-e1-ft#http://appinventor.mit.edu/explore/sites/all/files/UserGuide/blocks/text/splitatspaces.png)
Divides the given text at any occurrence of a space, producing a list of the pieces.
then select the 1st and 2nd item
Taifun
--
How do I designate Label2 as the split portion of label1?
--
Create two local variables, the set the label 1 to the first variable, label2 to the second variable
--
댓글 없음:
댓글 쓰기