Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property is not a method or event error message
Message
From
08/08/2002 02:58:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00687378
Message ID:
00687400
Views:
19
>I am implementing a barcode label printing system using Tharo's EasyLabel program, which has a nice set of ActiveX controls specifically for this purpose. All is well and good until I try to create a routine to clear a print job. By Tharo's documentation, there is a Cancel() method assocated with the printer control that is what I need to use, however when my program hits a line calling this cancel() method. VFP pops up the error "Property CANCEL is not a method or event" error. Nothing is misspelled, I've gone over and over it, and besides, it even appears in Intellisense when I reference the control. It DOES work in VB (naturally). The only thing I can come up with is that CANCEL is a reserved word in VFP and that potentially is causing the problem. Any better ideas?
>
>
>Randy

I'd try these :
.cancel = .t.
.object.cancel()
.object.application.cancel()
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform