Hello, I have create control array of cal.ocx, when compile I have this error message:
Error Number: 516
This is the function with problem:
Function FF_OCX_GETINFO( _
ByVal dwCookie As Dword, _
ByRef hwndControl As Dword, _
ByRef idControl As Dword _
) As Long
'Internal FireFly function that the programmer can call when using any OCX event code. This
'function allows you to determine which control is receiving the message. This is critical
'for Forms that have more than one instance of the same OCX. The incoming dwCookie parameter
'is used to determine the appropriate control.
Select Case Long dwCookie
Case COOKIE_FORM1_OCXCONTROL1
hwndControl = HWND_FORM1_OCXCONTROL1
idControl = IDC_FORM1_OCXCONTROL1
Case COOKIE_FORM1_OCXCONTROL1
hwndControl = HWND_FORM1_OCXCONTROL1
idControl = IDC_FORM1_OCXCONTROL1
Case Else
'no match. :-(
Function = %FALSE
Exit Function
End Select
'if we reach this far then the function was successful
Function = %TRUE
End Function
Thanks [/img]
Yes, that does appear to be a problem. I will fix it for the 2.70 update (which is coming out very soon).
Actually, on second thought, FireFly is not supposed to allow control arrays of OCX's. The bug is that it asks if the user wants to create a control array when in actual fact it should inform the user that control arrays are not allowed for OCX's. There is no ControlIndex property for OCX's.