This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
Author Message
SniperOfTheNight


Advanced Member


Joined: 24 May 2003
Posts: 260

Posted: 04 Jun 2003 07:30:24 pm    Post subject:

I think you could,all you would have to do is:

21->A
disp A,"Hello"

it would display 21Hello

You could also do disp "HELLO",A to get
Hello21


Using 'and' is if you were doing something like:

If A=21 and B=22
Then
<code here>


Last edited by Guest on 04 Jun 2003 07:32:44 pm; edited 1 time in total
Back to top
SniperOfTheNight


Advanced Member


Joined: 24 May 2003
Posts: 260

Posted: 04 Jun 2003 07:37:07 pm    Post subject:

No problem,that's what we're here for Very Happy
Back to top
Justin W.
Shattered Silence


Advanced Member


Joined: 24 May 2003
Posts: 429

Posted: 04 Jun 2003 09:49:53 pm    Post subject:

Problem with that is it will Display

(14spaces)21
Hello
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 04 Jun 2003 11:28:39 pm    Post subject:

u could use :
:23->A
:"Hello->Str1
:ClrHome
:Output(1,1,A
:Output(1,int(log(A))+2,Str1

which would output :
23Hello

hope that helps!


Last edited by Guest on 04 Jun 2003 11:28:58 pm; edited 1 time in total
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 05 Jun 2003 01:49:57 am    Post subject:

Either that, or you could encode the real to a string and concatnate the hello

e.g.

21->A
"HELLO->Str2

"A->Str1
While ipart(A)
Str1+Sub("0123456789",10fPart(.1A)+1,1)->Str1
ipart(.1A)->A
End
ClrHome
Sub(Str1,2,Length(Str1)-1)+Str2->Str1
Disp Str1

Displays "23HELLO" on one line using Disp Very Happy ; tested only mentally Laughing ; closeing parenthisis left on to make code clear : Neutral


Last edited by Guest on 05 Jun 2003 01:52:07 am; edited 1 time in total
Back to top
nindoja


Newbie


Joined: 29 May 2003
Posts: 4

Posted: 14 Jun 2003 08:05:23 pm    Post subject:

OR, you could simply Surprised do this:

Code:
"23HELLO"->Str1
Disp Str1

OR, you could do this, which works for a dynamic variable Razz :

Code:
number->X
{X,0}->LTEMP1
{0,X}->LTEMP2
LinReg(a+bx) LTEMP1, LTEMP2, Y1
Equ>String(Y1, Str1)
sub(Str1,length(Str1),length(Str1)-4)->Str1
DelVar LTEMP1
DelVar LTEMP2
DelVar Y1


Last edited by Guest on 14 Jun 2003 08:09:26 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement