In VB6, is it possible to call a function with an operator in the parameter? -
i'm having hard time finding answer this, such generic terminology, , it's possible question still difficult parse. have code variable representing amount of free disk space remaining percentage. want call function, use reverse amount in message user, i.e. amount of used space. can little math in function call?
public sub myapp()     dim nfreespace integer     nfreespace = getfreespace     displayusedspace 100 - nfreespace 'is valid? end sub private function displayusedspace(byval nusedspace integer) boolean     msgbox("you have used " & nusedspace & "% of disk drive space.") end function 
yes, valid. although, write this
call displayusedspace(100 - nfreespace) but, code work fine too.
Comments
Post a Comment