String question
BTX
Posts: 674
Hi.
I'm getting crazy with this simple problem.
This works fine.
Alberto.
·
I'm getting crazy with this simple problem.
This works fine.
and why·this NOT ???????BTX said...
CON
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
OBJ
· tv········· : "tv_text"
PUB Ftest
··· tv.start(12)····························································· '···· Start the tv terminal
··· tv.str(string($0C,3,"It's beggining the test........ ",13))··········································· '····
··· tv.str(string($0C,3,"It's finishing................. ",13))··········································· '····
RegardsBTX said...
CON
· _clkmode = xtal1 + pll16x
· _xinfreq = 5_000_000
OBJ
· tv········· : "tv_text"
PRI Doing(texto)
··· tv.start(12)····························································· '···· Start the tv terminal
··· tv.str(string($0C,3,texto,13))··········································· '····
PUB Ftest
··· Doing("A")
··· Doing("B")
···
Alberto.
·
Comments
See this thread: http://forums.parallax.com/showthread.php?p=617756
-Phil
But in Scott example ...he want o show a dec in the same way that a string...I want to replace a full string expression, with a new one form, that let me to send to TV a directly formated string (carrieage returm plus colors, in a simple form like Doing("xxxxx")).
Which is the base problem to pass a string variable, as string in the TV object?
Regards.
Alberto.
-Phil
It seems to provide display of string, dec, hex, bin. Am I not using the proper object to display characters?___
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
h.a.s. designn
A: text.out(x)
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Martin Hebel
StampPlot - Graphical Data Acquisition and Control
AppBee -·2.4GHz Wireless Adapters & transceivers·for the BASIC Stamp & Other controllers·
Use the out function. It will display a single character as ASCII.
-Phil
Separate call....is not my Doing() ??
If I can't put a variable into the string command, how to pass my variable value to it ??
I insist because, I think i could get the same problem in the future, when I'll try to use an existing object.
Could you brieftly, write for me a couple of code, to show me what you want to say ?
Thanks again...
Alberto.
Sure. Try this:
If you were using strings instead of single characters, you'd do something like this:
Also, notice that I moved the call to start so it would only be executed once.
-Phil
Now I understand, what you want to say, and it's working fine...
It' very clear, tv.str accept the variable 'texto', but without the command 'string', then you put it after the Doing, if you want to show more than one character.
I think I'm getting a bit older........too much Java, C++, VB, VFP, MASM, etc.etc. no more RAM available in my mind perhaps.
Regards.
Alberto.