Hi, This seems to work and is much quicker. //Returns a string l long of c$ characters function string$(l,c$) dim a$[64],i,c c = asc(c$,0) for i=?a$+4 to ?a$+l+4 pokec (i,c)) next i //Append null to terminate string pokec (i,0x00) return a$ endf //string$ The trick is that the first 4 bytes of the string, ieby g8jcf - ByPic
Hi Has anybody got a really quick ByPic function/plugin for the string$ function present in most BASICs ? ie string$(Count, Char) where Count is the number of characters to return, and Char is the character, eg X$=string$(20,"0") would result in X$ containg 20 zero characters, ie "00000000000000000000". The best I can do is //Returns a string l long of c$ charactersby g8jcf - ByPic
Hi Jim Got it, good idea. OK, I'll try that method and see how it goes. Very many thanks Peterby g8jcf - ByPic
Hi Jim Thanks, will flclear(0) remove rookie as well, or just the constants ? Thanks Peterby g8jcf - ByPic
As I've said before, the C plugin capability of ByPic is fantastic. Now, how/can I pass 2 or more pointers to a C plugin function ? eg could I have int AddLong(char *A, char *B, char *C){ .............function body } and then in ByPic do Call AddLong( ?A(0), ?B(0), ?C(0) ) Thank you in advance Peterby g8jcf - ByPic
Plugins work fantastically well, what a performance enhancer. But how do I remove the "constants" from flash ? In the course of developing the plugins, I have committed dozens of "constants" to flash, so how do I get rid of the ones I don't want ? I can't do list 'cos I'm using MX150. Many thanks Peterby g8jcf - ByPic
OK, will wait patiently :) Take care Peterby g8jcf - ByPic
Hi Jim OK, I just restart everything, and continue, that works. I think I'm beginning to get into the spirit of ByPic :) Peterby g8jcf - ByPic
Thanks Jim, that's OK I understand that not everything can be squeezed in when memory is tight. Now that Microchip are shipping PIC32MX170F256B-50I/SP which has double the memory, will you be releasing ByPic for the MX170 with some improved facilities ? Many thanks Peterby g8jcf - ByPic
Hi I'm just getting started with ByPic so please be patient with me ! I'd like to be able to pass Integer Arrays into ByPic functions, have the function then return back results in another array, something along the lines of : function DoStuff( a(), b(), results() ) results(0)=a(0)+b(0) results(1)=a(1)+b(1) endf function Test() dim i(2),j(2),k(2) i(0)=1; i(1)=2 j(0by g8jcf - ByPic
Hi I've just started using BV_COM2, and while downloading a small (30 line) test program to a MX150 ByPic, I get the error "Access violation at address 0043F5F8. Write of address 20202020." BV_COM2 seems to be still working OK after I press OK in the error dialogue box, but if I try and download again, I get the same error. Menu File | Exit doesn't work, and the only way ofby g8jcf - ByPic
Thanks, seems to be working fine now Peterby g8jcf - ByPic
I've just got a BP1 and am working my way through the tutorials at for example, but the images do not show for me (I've tried both IE and Chrome). Is it just me or do others see this problem ? Many thanks Peterby g8jcf - ByPic