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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -