A very simple spin question.
BTX
Posts: 674
Hi all.
Something is getting me crazy, I will apreciate some help in this.
I've a byte variable which values could be from 1 to 30, and I need to create a string variable with that number plus· the ".btx" string.
In example:
I have a variable·.... nValue := 16
And I need to translate to:·.... ·name := "16.btx"
then I will do .... nValue++
so my new name string will be ... name := "17.btx"
How can I do that ??
It is to put that "name" as the filename, to be open by the Rokicki's SD code.
Thanks in advance !!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Something is getting me crazy, I will apreciate some help in this.
I've a byte variable which values could be from 1 to 30, and I need to create a string variable with that number plus· the ".btx" string.
In example:
I have a variable·.... nValue := 16
And I need to translate to:·.... ·name := "16.btx"
then I will do .... nValue++
so my new name string will be ... name := "17.btx"
How can I do that ??
It is to put that "name" as the filename, to be open by the Rokicki's SD code.
Thanks in advance !!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Note that this also copies the zero byte terminator.
Thanks Ken... I didn't it.
Thanks Mike and deSilva !! ..... but it seems to be not so easy for me ...unless at this time.. I will try to understand what you·wrote, tomorrow morning....at first sight, it is like "basic chinese" for me . Although comming from you..I'm sure that it works !
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
Yes, I know that the "correct words"·should be "simplified Chinese"......
"Basic Chinese" is only a literal expression in my country.... just to mean a too much difficult thing. (It sounds more interesting in Spanish..... "Chino básico").
Same, thanks all for your help !! I will try to decipher what you mean...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Alec
My our page