Ver Mensaje Individual
  #2
Antiguo 22 de abril de 2018, 14:48
Kuk
Administrador
Última Actividad 21.09.2026 18:24
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

Breew, tienes que incluir la opción POW-CDNOCHANGEDIR:

Del manual de Power:

Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4.  01 Filename           PIC X(256).
  5.  01 FileMask           PIC X(30).
  6.  01 FileStyle          PIC S9(9) COMP-5.
  7.  01 ReturnValue  PIC S9(9) COMP-5.
  8.  
  9.  PROCEDURE       DIVISION.
  10.  
  11. * Specify the types of files to list
  12.      MOVE "All files|*.*|Text files|*.txt" TO FileMask
  13.  
  14. * Specify the File Open dialog.
  15. * (Change this to POW-CDSAVE if you need
  16. * the File Save Dialog.)
  17.      ADD POW-CDOPEN TO FileStyle
  18.  
  19. * Specify the behavior required if the
  20. * user changes the current directory when
  21. * browsing for a file to open.    
  22.      ADD POW-CDNOCHANGEDIR TO FileStyle *> ESTE ES !!!
  23.  
  24.      INVOKE MainForm "GetFileName"
  25.        USING FileName
  26.             "Title Displayed in Title Bar"
  27.                  FileMask
  28.                  FileStyle
  29.        RETURNING ReturnValue



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita