[futurebasic] Re: [FB] STR# Char

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: "keller" <keller@...>
Date: Tue, 05 Oct 1999 14:20:16 -0500
> keller wrote:
> 
>> > Mornin' All,
>> >
>> > the below will drop the first 4 char of the STR# and paste the rest of it
>> >
>> >>Tp$ = RIGHT$ (STR# (217,gTheArmyID%),LEN (STR# (217,gTheArmyID%)) - 4)
>> >
>> > My dilemma .. Now I want to just paste the first 4 char of the STR# and
>> > drop the rest
>> >
>> How about...
>> Tp$ = LEFT$(STR# (217,gTheArmyID%), 4)
>>
>> Is this really the answer you were looking for?
>
> Don't forget that when you do the STR$(217,gTheArmyID%) that it puts a space
> on the left, so you need to take 5 chars with LEFT$ and drop the first one or
> do MID$(STR$(217,gTheArmyID%),2,4) instead; if that is really what Jim is
> looking for!
>

Whoops! I guess I shouldn't have answered this one since I never use str$.

Anders :o]

Keller@...