1. Anto Kuriyan
  2. PowerBuilder
  3. Wednesday, 27 December 2023 07:58 AM UTC

Hi Team

 

how to open notepad++ from pb and copy the data window content to it?

Bruce Armstrong Accepted Answer Pending Moderation
  1. Wednesday, 27 December 2023 17:42 PM UTC
  2. PowerBuilder
  3. # 1

For getting NotePad++ to load the file you could register that application as the default editor and then use the ShellExecute Windows API function to launch it:

https://www.rgagnon.com/pbdetails/pb-0008.html

Or, you can also use the ShellExecuteEx Windows API function to call NotePad++ when it isn't the default editor:

https://www.rgagnon.com/pbdetails/powerbuilder-launch-executable-capture-its-handle.html

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 27 December 2023 14:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi BKR;

  FWIW: I would use the Library export() + the Run() command to export the DWO source and then launch NotePad++ App passing the DWO source file as an argument to the NP EXE.Then after editing & saving the DWO source, I would use the LibraryImport() command to put the updated DWO source back into its PBL.  HTH

Regards ... Chris 

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 27 December 2023 12:42 PM UTC
  2. PowerBuilder
  3. # 3

What you could try:

- Start notepad++

- Use FindWindowEx function from Windows API to find the Notepad++ window.

- Use SendMessage to send WM_SETTEXT Message to the Window with the text you want to copy.

 

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Wednesday, 27 December 2023 11:30 AM UTC
  2. PowerBuilder
  3. # 4

Hello,

You can write the contents to a text file using

FileOpen, FileWrite, FileClose 

functions.  After completing, you could open the file using Notepad++

HTH

Happiness Always
BKR Sivaprakash

 

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.