[futurebasic] Re: [FB] Post The Size

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2000 : Group Archive : Group : All Groups

From: Alain Pastor <pixmix@...>
Date: Fri, 23 Jun 2000 16:26:27 +0200

Jim Henson wrote:

> Mornin' all,
>
> Dumb Dumb is being Thick Headed again ..
>
> I Sure need some help
>
> This FN Accumulates the size in Ks of the PICTs it is saving and if that
> size hits 15 mgs it stops installing and notifies you that it it "Is
> Topped Out" ..
>
> No PROBLEM THERE .. Thanks to Alain ..
>
> Now the problem .. I want to Post the final/total catalog size (Ks) in
> Edit Field #9
>
> And I can't figure out how to Convert
>
> gCatalogSize& = gCatalogSize& + fileSize& - 512
>
> into a "value" .. and put that "value" into a STR# (502,2)
>
> Or .. Better yet ..Convert it to the variable "gTotalSize%" that posts
> directly into Edit Field #9
>
> EDIT FIELD (9) = %gTotalSize%
>
>

Hi Jim,

Maybe you can do something like this:

gFBFloatMaxDigits% = 2
EDIT$(9)  = STR$(gGlobalSize& \ 1024^2)+ " Mo"

Note that gGlobalSize& is a long int.

Cheers

Alain