Avatar of AL_XResearch
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Excel VBA - Terinology: Argument type matching

I am trying to explain to a colleague about using rounded brackets to covert the type of a passed parameter to match the type expected by the code being called. For example:
Dim strMyName as string
Dim intLengthOfJob as integer

sub myCode(strEmployeeName as string,lngJobAge as long)
end sub

strMyname = "Fred"
myCode strMyName, (intLengthOfJob)

Open in new window

What is this type of implicit argument type conversion actually called (in MS speak) ?

Many thanks.
Microsoft ExcelVisual Basic ClassicMicrosoft OfficeVBA

Avatar of undefined
Last Comment

8/22/2022 - Mon