TRzDBNavigaor Click

Viewing 1 reply thread
  • Author
    Posts
    • #2075
      Barry Wood
      Participant

        Ray,

         

        I’m sure I asked this before but can’t find it using the search (maybe not, my mind plays tricks) … but

        I want to simulate a dbnavigator click. Normally I’d use dbNav.BtnClick( nbFirst ); for instance, but using the TRzDBNavigator gives an error incompatible types.

      • #2077
        Ray Konopka
        Keymaster

          Hi Barry,

          The nbFirst is conflicting with the enum for the TDBNavigator. Easiest way to resolve is to prefix the enum with the enum type. For example,

          dbNav.BtnClick( TRzNavigatorButton.nbFirst );

          You could also rearrange the units in the uses clause, but I tend to like adding scope to avoid the conflict regardless of the order of unit names.

          Ray

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.