Search results

  1. S

    catch all exceptions in .p program

    Progress Version 9.1
  2. S

    catch all exceptions in .w program

    I need a Generic catch for all exceptions in .w code, and store the Message in a variable, example: DEF VAR err AS CHARACTER. ?? DEF VAR obj AS MEMPTR. PUT-STRING(obj, 0) = "hello". ?? fill "err" variable in this case with = "PUT/GET functions not allowed on uninitialized memory. (2914)"...
  3. S

    catch all exceptions in .p program

    I need a Generic catch for all exceptions in .p code, and store the Message in a variable, example: DEF VAR err AS CHARACTER. ?? DEF VAR obj AS MEMPTR. PUT-STRING(obj, 0) = "hello". ?? fill "err" variable in this case with = "PUT/GET functions not allowed on uninitialized memory. (2914)"...
  4. S

    List Fields

    Excelent!!! Thank You So Much!!!
  5. S

    List Fields

    I am trying to get field names from one table: ex: FOR EACH TableName NO-LOCK: CREATE data-table. data-table.ColumnName = ¿?. END. Table Columns (column1, column2, column3) Thanks
  6. S

    Attribute GET-CGI-VALUE for the PSEUDO-WIDGET has an invalid value of . (4058)

    How I can solve it in version 9? thanks!
  7. S

    Attribute GET-CGI-VALUE for the PSEUDO-WIDGET has an invalid value of . (4058)

    DEF VAR sPost AS CHARACTER NO-UNDO. sPost = GET-VALUE("WebValue"). **Attribute GET-CGI-VALUE for the PSEUDO-WIDGET has an invalid value of . (4058) "WebValue" contains great quantity of information. How I can solve it? thanks
  8. S

    split function?

    I want to obtain an array of text from a string separated for "/" character. Ex. def var text1 as character. text1 = "/folder1/folder2/file.p". DO v-i = 1 TO NUM-ENTRIES(??): IF NOT Entry(v-i,text1) = '':U THEN DO: DISPLAY Entry(v-i,text1) . END. END. result: folder1 folder2 file.p...
  9. S

    Checks for the existance of a folder

    for files: def var file as char no-undo. def var f as char. file = "helloworld.p". FILE-INFO:FILE-NAME = file. f = FILE-INFO:FULL-PATHNAME. IF f <> ? THEN DO: DISPLAY "Exist". END. ELSE DO: DISPLAY "Not Exist". END. the same for...
  10. S

    Obtain Field Type

    find _file no-lock where _file-name = "customer". find _field no-lock where _file-recid = recid( _file ) and _field-name = "name". display _data-type. Forget to create an alias. this works. thanks!
  11. S

    Obtain Field Type

    physical table
  12. S

    Obtain Field Type

    DEFINE VARIABLE columnName AS CHARACTER. DEFINE VAR bh AS WIDGET-HANDLE. DEFINE VARIABLE typeResult AS CHARACTER. columnName = "TableCustomer.ColumnId". CREATE BUFFER bh FOR TABLE ENTRY(1, columnName, "."). typeResult = bh:BUFFER-FIELD(ENTRY(2, columnName, ".")):DATA-TYPE. DISPLAY typeResult...
  13. S

    Obtain Field Type

    could not create buffer object for table TableCustomer. (7334)
  14. S

    Obtain Field Type

    I am trying to obtain the data type (logical, character, etc) from a table and field name stored in a variable. DEFINE VARIABLE columnName AS CHARACTER. columnName = "TableCustomer.ColumnId". DEFINE VARIABLE typeResult AS CHARACTER. ...do Something... DISPLAY typeResult. /* ex. ColumnId...
  15. S

    Sort TEMP-TABLE

    Excelent! thanks.
  16. S

    Sort TEMP-TABLE

    DEF TEMP-TABLE test FIELD caption AS CHARACTER. create test. assign test.caption = "Microsoft". create test. assign test.caption = "Apple". create test. assign test.caption = "Oracle". FOR EACH test no-lock. DISPLAY test.caption. END. it's possible to sort a temp table? output...
  17. S

    write text file

    OUTPUT TO test.p. put unformatted "hello world". OUTPUT CLOSE.
  18. S

    write text file

    how can write a text file which content will be the value of a variable? (without using copy-lob) DEF VAR filepath AS CHAR NO-UNDO. DEF VAR content AS CHAR NO-UNDO. filepath = get-field('filepath'). content = get-field('content'). do write...¿? Thanks
  19. S

    WebSpeed Agent Error: Agent did not return an HTML page (6383)

    .w code: {&OUT} "<html><body>Hello World</body></html>" Error Message: WebSpeed error from messenger process (6019) WebSpeed Agent Error: Agent did not return an HTML page (6383) What am I doing wrong? Thanks
  20. S

    read .p code

    Why can .NET not read the .p directly? What business logic is in the .NET application and why does it need to be there if there are pre-existing tools that do the same and more? Why re-invent the wheel? > It is not possible to store files in the progress server, and is not possible to accede...
Top