Perché se scrivo:
Draw.Text(Format(hFreeSpace, "###.#"), 10, 0, 100, 14)
Dichiarando esternamente
PUBLIC hFreeSpace AS Float 'Show HDD free space
mi scrive 0?
format formatta una stringa quindi ti conviene convertire il float in un astringa prima di formattarlo
Draw.Text(Format(cstr(hFreeSpace), "###.#"), 10, 0, 100, 14)
la parte dove ho scritoo show....manca dell'', è un commento.
nell'apertura del form ho scritto anche questo:hFreeSpace = Dfree("/") / 1073741824
che avevo dimenticato di postare...