PdcWindows.ActiveWindow

From External Bemet Wiki
Revision as of 14:54, 21 May 2012 by Mike (talk | contribs) (Created page with "== Declaration == ActiveWindow as PdcWindow == Description == Returns the window object of the active window == Notes == This property returns the window object for the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

ActiveWindow as PdcWindow

Description

Returns the window object of the active window

Notes

This property returns the window object for the active window in Plan-de-CAMpagne.

Code example

Loop through the selected rows of the active window if it is the calculationlist and shows the calculation text.

dim activewindow
dim intTel
dim objCalc
dim KeyValues

    set ActiveWindow = pdc.Windows.ActiveWindow
    if ActiveWindow.WindowKey = "32" then 'Calculationlist
      set KeyValues = ActiveWindow.KeyValues
      for intTel = 0 to KeyValues.Count -1
        set objCalc = pdc.OpenCalculation(KeyValues(intTel))
        if IsValid(objCalc) then
          MsgBox objCalc.Text
        end if
      Next
    end if
    set KeyValues = nothing
    set objCalc = nothing
    set ActiveWindow = nothing

Availability

Available from 4.0 onwards.