Problem DISKFREE

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Georg_BA
Posts: 108
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Problem DISKFREE

Post by Georg_BA »

Hello, i need help with function diskfree()
if I use it when compiling writes "undefined reference to `HB_FUN_DISKFREE' "
User avatar
Claudio Ricardo
Posts: 367
Joined: Tue Oct 27, 2020 3:38 am
DBs Used: DBF, MySQL, MariaDB
Location: Bs. As. - Argentina

Re: Problem DISKFREE

Post by Claudio Ricardo »

Hi... Try this:
cDiskFree := Hb_NtoS ( Hb_DiskSpace( "C:" ) / 1000000000) + " Gigabytes"

Hb_DiskSpace ("C:") return the free space remain in the C or other unit. (in bytes)
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
Georg_BA
Posts: 108
Joined: Fri Apr 07, 2017 5:31 pm
DBs Used: DBF

Re: Problem DISKFREE

Post by Georg_BA »

Thanks, it works, I didn't know about this function
Post Reply