![]() |
Forum Index : Microcontroller and PC projects : Number to string
![]() ![]() |
|||||
Author | Message | ||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Paul, Jeff is using the original Maximite and it's MMBasic doesn't know about integers. Floating point and strings only. Jim VK7JH MMedit |
||||
jeffj Regular Member ![]() Joined: 04/02/2012 Location: AustraliaPosts: 84 |
Hi Paul and Jim thanks for yr help really appreciated I thought it was a simple question.I didn't think about using an array. My solution as foll. Thanks for the education on % etc Paul. Jim You probably know off hand why my version of MM does not recognise the "LOCAL" command. Do I need to go to ver 4.5C ? regards Jeff 'THIS WORKS dim var$(3),AL(10) al(2)=1'test value al(3)=1'test value data "A","B","C" for loop= 1 to 3 read var$(loop) next loop for loop= 1 to 3 if al(loop)=1 then print var$(loop) next loop |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
LOCAL was around before V4.5 so it should work for you. I am not sure exactly what you are trying to achieve but this is what I came up with as a solution to my interpretation of your original brief No subroutine needed. Jim VK7JH MMedit |
||||
jeffj Regular Member ![]() Joined: 04/02/2012 Location: AustraliaPosts: 84 |
Spot on Jim Why couldn't I have thought of that I use yr editing program all the time now .many thanks for the work you put into that Thanks again Jeff |
||||
![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |