Add LEFT$ and RIGHT$ String functions
Add LEFT$ and RIGHT$ String functions
This compiler is better than most, partially because it handles strings. It would be nice to add the common BASIC 'left$' and 'right$' (and maybe even 'mid$') string functions as well.
Hi,
are you referring to functions ltrim and rtrim
(left trim and right trim)?
If so it will be implemented in new PRO version of our compilers for PIC
Regards
are you referring to functions ltrim and rtrim
(left trim and right trim)?
If so it will be implemented in new PRO version of our compilers for PIC
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
The basic functions Left$ and Right$ return a number of characters at the beginning resp. the end of the string, while "trimming" is removing spaces at the beginning resp. the end of the string. So the functions are (I think) totally different.circuitpro wrote:Yes. That's them! Thanks.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Like been said earlier, we will implement ltrim and rtrim functions in new PRO version of our compiler for PIC. We are working on this right now.circuitpro wrote:I didn't realize trimming referred exclusively to spaces. If that's the case, then the ability to CHOP spaces or characters from a string's LEFT and RIGHT end would be far more useful, at least to me. I didn't understand the space-only distinction.
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
Hi,
Left$, Right$ and Mid$ are all special cases of the "Copy" function in http://users.edpnet.be/rosseel01/DRO/PI ... Utils.ppas. In Pascal, but the code can easily be converted to Basic...
Left$, Right$ and Mid$ are all special cases of the "Copy" function in http://users.edpnet.be/rosseel01/DRO/PI ... Utils.ppas. In Pascal, but the code can easily be converted to Basic...
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Hi,
maybe you were not aware that we started releasing PRO versions of our compiler.
This is already done for our AVR compilers, (you can find it on this forum in AVR section).
The main features are new bit variables and new graphic IDE.
We expect beta versions of PRO version compilers for PIC family to be released in January.
When this happens (there will be an official announcement) you are all welcome to test it.
Regards
maybe you were not aware that we started releasing PRO versions of our compiler.
This is already done for our AVR compilers, (you can find it on this forum in AVR section).
The main features are new bit variables and new graphic IDE.
We expect beta versions of PRO version compilers for PIC family to be released in January.
When this happens (there will be an official announcement) you are all welcome to test it.
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
This leads to the next question - will registered owners of MEbasic ver. 7 have to pay for the PRO version?
I notice that the AVR PRO version is more expensive then the standard, so I guess it is a separate (and more expensive) version.
I notice that the AVR PRO version is more expensive then the standard, so I guess it is a separate (and more expensive) version.
[b]"So many wasted hours...such a simple solution"[/b]
Check out my website to see what this Geek is up to.... www.TheGeekKing.com.
Check out my website to see what this Geek is up to.... www.TheGeekKing.com.
Hi,
this is a management issue that is still "on the table"
being decided. When we are little closer to release of new PRO compilers
for PIC we will have an answer to this question.
Regards
this is a management issue that is still "on the table"
being decided. When we are little closer to release of new PRO compilers
for PIC we will have an answer to this question.
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
Hi,
(C, Pascal and Basic), the old versions of AVR compilers will become obsolete.
Regards
It is separate version for AVR because when we make official release of all three compilers for AVRkotg wrote:I notice that the AVR PRO version is more expensive then the standard, so I guess it is a separate (and more expensive) version.
(C, Pascal and Basic), the old versions of AVR compilers will become obsolete.
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
-
- Posts: 137
- Joined: 10 Mar 2005 22:59
- Location: Cardiff, UK
- Contact:
Hi,
in short notes two main differences between old version and a PRO version is that in the PRO version we have introduced bit variables, and new graphical IDE (as already seen in compilers for 8051 and AVR family of MCUs).
We are very optimistic about bit variables because tests have shown that compiler produces 30-40% less machine code (if you compare the same code in new compiler with the old one).
New IDE has a lot of new features and many improved old ones, library manager (with a simple click you you enable/disable the given hardware library for your project) and many more.
Hope this helps.
Regards
in short notes two main differences between old version and a PRO version is that in the PRO version we have introduced bit variables, and new graphical IDE (as already seen in compilers for 8051 and AVR family of MCUs).
We are very optimistic about bit variables because tests have shown that compiler produces 30-40% less machine code (if you compare the same code in new compiler with the old one).
New IDE has a lot of new features and many improved old ones, library manager (with a simple click you you enable/disable the given hardware library for your project) and many more.
Hope this helps.
Regards
LibStock
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
http://www.libstock.com/
mikroSDK
https://www.mikroe.com/mikrosdk
mikroBUS
https://www.mikroe.com/mikrobus
After 4 years, no ltrim or rtrim?
It looks like ltrim and rtrim never made it.