SRO_TSG
asked on
PowerBuilder 10 and GetVolumeInformation
PowerBuilder 10 on Windows XP: I need to check whether a CD drive has a disk in it. I found older articles about GetVolumeInformation but it appears this is not supported in PB10. Can this be done in PB10? What would the code look like? TIA!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I forgot - 'X:' in the above should of course be your CD drive's letter.
Hi,
I dont know how far this workaround will succeed, but give it a try,
have a listbox control on ur window and the code is below,
Boolean lb_valid
lb_valid = lb_1.DirList("Z:\*.*", 0)
If lb_valid = False Then
MessageBox('Warning','No Disc in drive or Disc Unreadable!',Information!)
End If
Cheers,
Rosh
I dont know how far this workaround will succeed, but give it a try,
have a listbox control on ur window and the code is below,
Boolean lb_valid
lb_valid = lb_1.DirList("Z:\*.*", 0)
If lb_valid = False Then
MessageBox('Warning','No Disc in drive or Disc Unreadable!',Information!)
End If
Cheers,
Rosh
Forced accept.
Computer101
EE Admin
Computer101
EE Admin