Oh, duh! I didn't even think of that.
Thanks,
-Michelle
>I don't know if there is one command but If I understand what you want to do you should be able to use Int(number) to return the Integer then subtract that from the whole to get your decimal.
>
>Jeff
>
>
>>Ok, that's good for the SUBSTR(), but how do I get it to a string?
>>
>>Thanks,
>>
>>-Michelle
>>
>>>Take a look at Mid Mid(string, start[, length])
>>>
>>>HTH
>>>Jeff
>>>
>>>>Yeah, I know this is off topic, but where else can I get a quick answer? :)
>>>>
>>>>Anyway, does anyone know how to do STR() and SUBSTR() in VBS? Either that or a function that keeps the decimals and drops the integer. The last way is prefered.
>>>>
>>>>I need to do the STR() with decimals, so I can't use CSTR().
>>>>
>>>>Thanks,
>>>>
>>>>-Michelle
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement