Results 1 to 10 of 10

Thread: Help topic cTimer

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Help topic cTimer

    Just had a need to use the cTimer class.

    Went to the Help (https://docs.dataaccess.com/dataflex...Ref/cTimer.htm) and copied the sample code:
    Code:
    Use cTimer.pkg
    
    
    Class cAutoCompleteTimer is a cTimer
    
    
        Procedure Construct_Object
            Forward Send Construct_Object
            Property Handle phoTimerOwner 0
            Set piTimeout to 50
        End_Procedure
      
        Procedure OnTimer 
            Handle hoOwner
            Get phoTimerOwner to hoOwner
            // do this in case progam close destroys owner before timer
            Get Object_Id of hoOwner to hoOwner
            If hoOwner Begin
                Send OnAutoSuggestTimer to hoOwner
            End
            Else Begin
                // something wrong, shut off timer
                Set pbEnabled to False   
            End                                
        End_Procedure
        
    End_Class
    Then got the compile error: Error 4306: C:\ ... blah ... Forward reference not resolved GET_PHOTIMEROWNER.

    Maybe fix the Help? Also "progam" isn't a real word. (BTW, the Help link "E-Mail us suggested improvements for this Topic" does not work for those of us who have moved beyond letting Outlook screw up our e-mail.)

    Mike

  2. #2
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Help topic cTimer

    Mike,

    (BTW, the Help link "E-Mail us suggested improvements for this Topic" does not work for those of us who have moved beyond letting Outlook screw up our e-mail.
    You can also log these suggestions via HDE.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  3. #3
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Help topic cTimer

    Vincent - Nah, it's way easier to post them here and have you do it!

    Mike

  4. #4
    Join Date
    Feb 2009
    Location
    Cayman Islands
    Posts
    3,969

    Default Re: Help topic cTimer

    Quote Originally Posted by Mike Peat View Post
    J....does not work for those of us who have moved beyond letting Outlook screw up our e-mail.)

    Mike
    I'm of the school of thought that wishes MS had just bought Groupwise , but what have you moved beyond to? (autotranslate from Caymanian)
    I should be on a beach ...

  5. #5
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Help topic cTimer

    Dave

    Thunderbird (v60.6.1, 64-bit) on MacOS (v10.14.4).

    Mike

  6. #6
    Join Date
    Nov 2008
    Location
    Round Rock, TX
    Posts
    8,849

    Default Re: Help topic cTimer

    Hi Mike,

    I've made a note to fix the doc.

    The email link is just a mailto: HTML anchor, I would expect that to work regardless of your email client.

  7. #7
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Help topic cTimer

    Dennis

    I run my e-mail (Thunderbird) on my Mac, but run DataFlex on a Windows (mostly 7 ATM, but I have 10 available on there as well) VM (which in turn runs on my Mac), but which doesn't have an e-mail client set up (Outlook is actually on there, but unconfigured), so when I click on the link it isn't in the same "place" as my e-mail.

    I could copy the URL of the online version to my Mac browser and then click it there I guess! ... OK, just did that!

    Mike

  8. #8

    Default Re: Help topic cTimer

    Mike,

    Quote Originally Posted by Mike Peat View Post
    I run my e-mail (Thunderbird) on my Mac, but run DataFlex on a Windows (mostly 7 ATM, but I have 10 available on there as well) VM (which in turn runs on my Mac), but which doesn't have an e-mail client set up (Outlook is actually on there, but unconfigured), so when I click on the link it isn't in the same "place" as my e-mail.
    I think you’re using VMware Fusion?

    Note that I have never used this myself, but there’s actually a feature to have a host application being tied to an in guest URL protocol handler.
    So in your case, you can in fact start Thunderbird on your host when clicking on a mailto: link in the guest.

    This does need to be configured though and the way to do so is as follows:
    - VMware Fusion menu -> Preferences
    - Tab "Default Applications"
    - Option at the top "Open mail with".. and you can check this plus select thunderbird
    You can also add more protocol handlers such as ssh etc..

    Note that your VM itself also has options for default application and a checkbox for enabling them which can be found under menu "Virtual Machine" -> "Default applications". I'm not sure if you have to enable it there as well.

    --
    Wil

  9. #9
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Help topic cTimer

    Wil (yes I am using VMWare Fusion)

    Interesting... I may give it a try.

    Thanks!

    Mike

  10. #10
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Re: Help topic cTimer

    Wil

    Didn't work immediately - Outlook is set as the default in Windows... not sure how to unset that: Default Programs will not let me delete it or uncheck things. (Outlook is installed as part of Office, but not configured.) Clicking on the link gets the same error: "Cannot start Microsoft Office Outlook". (For which we give grateful thanks, obviously! <g>)

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •