Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EVENTHANDLER Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
EVENTHANDLER Question
Divers
Thread ID:
01155784
Message ID:
01155784
Vues:
64
I have created an Active X control in VB6 and am programmatically adding it to a VFP 8 form as shown below. The EVENTHANDLER is throwing an error... 'Function, arguement count or type is invalid'.
	WITH ThisForm

		.AddObject("oleReportControl", "olecontrol", "NSAcctStatus.rptAccountStatus")

		WITH .oleReportControl

			.Top = 0
			.Left =0
			.Height = ThisForm.Height 
			.Width  = ThisForm.Width

		ENDWITH

		** Create an instance of the event handler class
		.oEventTrap = NEWOBJECT("NSControlEvents")

		** Bind the control's event to the event handler class
		=EVENTHANDLER(.oleReportControl, .oEventTrap)

		.oleReportControl.Visible = .T.

	ENDWITH

RETURN
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform