1. Neil Prichard
  2. InfoMaker
  3. Wednesday, 28 April 2021 17:24 PM UTC

is there any existing function or functions that will return the current data window name, the pbl and the last modified date of the data window ? 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 28 April 2021 18:12 PM UTC
  2. InfoMaker
  3. # 1

Hi Neil;

  Have a look at the PB LibraryDirectoryEx built-in command.

The LibraryDirectoryEx returns a tab-separated list with one object per line. The format of the list is:

name ~t date/time modified ~t comments ~t   type~n

HTH

Regards ... Chris

Comment
  1. Neil Prichard
  2. Thursday, 13 May 2021 22:24 PM UTC
Thanks Chris sorry for the late reply
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 13 May 2021 22:58 PM UTC
Welcome .. HTH
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 28 April 2021 18:19 PM UTC
  2. InfoMaker
  3. # 2

Hi, Neil - 

DataWindows don't have class definitions, so you cannot use the FindClassDefinition PowerScript function as you would for say, a window, to obtain the full name of the library where it resides.

Chris is correct that the LibraryDirectory or LibraryDirectoryEx PowerScript function can be used to list the contents of a library, but you need to know the name of the library.

From code, if you don't know the name(s) of the library(-ies), first use the GetLibraryList PowerScript function to obtain a comma-separated list of the files (including paths) in the search path of the application.

Then, as Chris suggests, for each library, use the LibraryDirectory or LibraryDirectoryEx PowerScript functions to obtain a list of the DataWindows within the library.

Regards, John

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.