login about faq

Hi Guys..,

I'm new to the software any just trying to get my head around it...

I've searched for a few hours on the forums and have been experimenting..

The help files seem to refer to a previous version of the software so I'm getting a little frustrated, but working my way through it.

Chilkat version: 9.5.0 Visual foxpro 9

I have created a class that implements the DLL as follows (as shown - sort off - in the docs) IMPLEMENTS _IChilkatEvents IN "libschilkatax-9.5.0-win32.dll"

I've created the procedures:-

    PROCEDURE _IChilkatEvents_PercentDone(percentDone AS Number, abort AS Number) AS VOID;
    HELPSTRING "method SendPercentDone"
    * add user code here
    This.nProgress = percentDone
    ACTIVATE SCREEN
    @0,0 say "Percent Done: " + TRANSFORM(This.nProgress)
    DOEVENTS
ENDPROC

PROCEDURE _IChilkatEvents_ProgressInfo(percentDone AS Number, abort AS Number) AS VOID; HELPSTRING "method ReadPercentDone" * add user code here This.nProgress = percentDone @0,0 say "Progress: " + TRANSFORM(This.nProgress) DOEVENTS ENDPROC

PROCEDURE _IChilkatEvents_AbortCheck(abort AS Number) AS VOID; HELPSTRING "method AbortCheck" * add user code here ENDPROC

I've created an instance of the class oCtrl...

So how do I abort the event... what property do I set to let chilkat know to abort?

Hope you can help.

Thanks in advance

Steve

asked Jun 20 '15 at 09:24

Albany's gravatar image

Albany
111

edited Jun 21 '15 at 13:56

jpbro's gravatar image

jpbro ♦
1.1k2618


Sorted it :)

Me again being silly...

Added a variable llAbort = 0

When the abort button is pressed it sets the llabort to 1.

And added the IF llabort = 1 to the procedure

PROCEDURE _IChilkatEvents_AbortCheck(abort AS Number) AS VOID;
    HELPSTRING "method AbortCheck"
    * add user code here
    IF THIS.llAbort = 1
        abort = 1
    ENDIF
ENDPROC
link

answered Jun 20 '15 at 09:49

Albany's gravatar image

Albany
111

edited Jun 21 '15 at 13:55

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×18
×10
×5

Asked: Jun 20 '15 at 09:24

Seen: 637 times

Last updated: Jun 21 '15 at 13:56

powered by OSQA