Jump to content
ELFORUM - Forumul electronistilor

PicBasic Pro - Concatenare String


78ATI

Recommended Posts

Buna tuturor. La sugestia unui bun amic (@XAN77) am inceput sa migrez spre PicBasic, insa ...m-am lovit de o problema: Concatenarea String.Mai precis in manualul PicBasic se spune: "The PROTON+ compiler supports String variables, only when targeting a 16-bit core PICmicro device."Ok...am inteles, insa eu folosesc PIC - 12bit. ce pot face? Exista vre-o solutie?Ma intereseaza ceva de genul:var_a="test"var_b="reusit"var_suma=var_a + "-" + var_bExemplul este absolut imaginar, insa doresc sa imi afisez respectivul string pe un ecran.

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 78ATI

    2

  • d2134

    1

Top Posters In This Topic

Nu am lucrat cu PicBasic dar in Basic operatorul de concatenare a sirurilor este "&".Incearca:var_suma=var_a & "-" & var_bTeoretic ar trebui sa mearga in orice flavour de Basic.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines