Ver Mensaje Individual
  #5
Antiguo 7 de septiembre de 2021, 15:47
fastpho
El Foro es mi casa
Innovación: Por aportar innovaciones - Issue reason: SQLite + OO Cobol class Concurso: Primer puesto: Ganador/a del Primer puesto en un concurso - Issue reason: Acceso a datos Cobol vía web 
Última Actividad 21.08.2026 18:08
Posts Posts: 365
Likes enviados Enviados: 252
Likes recibidos Recibidos: 243

Hola @Xavier, parce ser un problema de traducción como comento @Kuk, revisa los archivos que adjunto para la conversión, podes probar de cambiar estos valores .......
Código COBOL:
  1.  01 VARIANT-TYPE     PIC S9(9) COMP-5 VALUE 12. *>new valor era 23
  2.  01 ARRAY-DIMENSION  PIC 9(9) COMP-5 VALUE 1.  *> new valor era s9.
  3.  01 tagSafeArrayBound is typedef.
  4.       05 celements   pic 9(9) comp-5. *>new  era S9(9)
  5.       05 llbound        pic s9(9) comp-5.
  6.  01 SafeArrayBound   TYPE tagSafeArrayBound.
Y te paso un ejemplo que encontre en la web en VBScript for manipulating OpenOffice.org Writer
para que pruebes a parte
Código VB:
  1. 'The service manager is always the starting point
  2. 'If there is no office running then an office is started
  3. Set objServiceManager= Wscript._
  4.    CreateObject("com.sun.star.ServiceManager")
  5. 'Create the DesktopSet
  6. objDesktop= objServiceManager._
  7.   createInstance("com.sun.star.frame.Desktop")
  8. 'Open a new empty writer document
  9. Dim args()
  10. Set objDocument=objDesktop._
  11.  loadComponentFromURL("private:factory/swriter",_
  12.  "_blank", 0, args)
  13. 'Create a text object
  14. Set objText= objDocument.getText
  15. 'Create a cursor object
  16. Set objCursor= objText.createTextCursor
  17. 'Inserting some Text
  18. objText.insertString objCursor,_
  19.  "The first line in the created text document."&_
  20.        vbLf, false

Saludos
fastpho is offline   Responder Con Cita