Working with “Out” Parameters in JavaScript
I am working with an ActiveX control in Internet Explorer 8 that is to display a save file dialog which let's the user choose a file name and file type (jpg, gif, etc). These values get passed to code and then are used in a different method to save the file. Unfortunately the method that invokes the dialog has no return value, and the file name and file type are passed in as out parameters. The signature of the method (expressed in Visual Basic) looks like this: Public Sub SaveFileDialog( _ ByVal bstrDialogType As Variant, _ ByRef pbstrFileName As String, _ ByRef out_pvType As Long _ ) The two