[A83] Re: BASIC strings
[Prev][Next][Index][Thread]
[A83] Re: BASIC strings
no, it needs to be minus so you can get ZERO since if X=0 and it is just
sub("0123456789",X,1) the result will be an error because it starts
counting the string at 1 (i.e. "0"=1, "1"=2, "2"=3 and so on) so to account
for this you subtract 1 from X
----------------------------------------------
Original Message
From: "Frank Schoep"<dsfs98@concepts.nl>
Subject: [A83] Re: BASIC strings
Date: Thu, 10 May 2001 10:59:58 +0200
>
>I think that should be
>sub("0123456789",X+1,1)->str1
>or am I wrong? (plus/minus)
>
>Hope that helps,
>Frank
>
>----- Original Message -----
>From: "Joe Pemberton" <dArkSk8eR@buffbody.com>
>To: <assembly-83@lists.ticalc.org>
>Sent: Thursday, May 10, 2001 3:33 AM
>Subject: [A83] Re: BASIC strings
>
>
>>
>> sub("0123456789",X-1,1)->str1
>>
>> ----------------------------------------------
>> Original Message
>> From: "Matt Durant"<darthvader102@knology.net>
>> Subject: [A83] BASIC strings
>> Date: Wed, 9 May 2001 16:50:04 -0400
>>
>> >Is there anyway to add a number to a string without doing this:
>> >
>> >If X=1
>> >"1" -> str1
>> >
>> >In Qbasic and VisualBasic you can use cStr(X).....
>> >
>> >So how can I do this?
>> >
>> >
>> >
>> >
>>
>> _____________________________________________
>> Free email with personality! Over 200 domains!
>> http://www.MyOwnEmail.com
>>
>>
>>
>
>
>
>
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com
Follow-Ups: