I have been experimenting with the Volume Administration...
Articles and Tips: qna
01 Mar 2003
Q.
I have been experimenting with the Volume Administration control in order to set space limits for volumes. I am perplexed because the help indicates that TotalSpace property (NWVolAdm.NWSpaceLimit) is both Read/Write (what I need) and Read Only (not good for me).
The code works by adding the value provided to the limit e.g.,:
spcLimit.ChangeTotalSpace (CInt(txtTotalSpace.Text))
works just fine. However, if I want the user to specify an absolute value I want to use:
spcLimit.TotalSpace (CLng(txtTotalSpace.Text))
which gives me the following error:
"Compile Error: invalid use of property"
Am I missing something basic here, or what?
A.
Use the following:
spcLimit.TotalSpace = CLng(txtTotalSpace.Text)
* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.