Recent content by granth

  1. G

    functions v procedures

    Apologies for this in advance, I'm not entirely sure myself what I'm try to ask, but here goes... After 10 years coding in Progress I now find out that functions can return output parameters - something I never realised! Maybe it's because I've never seen a piece of code that uses functions...
  2. G

    freeing MEMPTR returned by a function

    I spoke to a (senior) Progress consultant about this and even he seemed less than certain about this issue. After speaking to yet another conultant he came back with the suggestion that the function have 2 purposes depending on an input parameter, which would tell the function to either create...
  3. G

    freeing MEMPTR returned by a function

    Thanks for the reply mbouchard but I am still not clear on this point. Consider this code (based around your example): DEF VAR a AS INT NO-UNDO. DEF VAR X AS MEMPTR NO-UNDO. FUNCTION mPtr RETURNS MEMPTR (INPUT cString AS CHAR): DEF VAR Y AS MEMPTR NO-UNDO. MESSAGE "Y:"...
  4. G

    freeing MEMPTR returned by a function

    My understanding is that from Progress 9.1 onwards, when you pass a MEMPTR from process A to B then B is actually sent a COPY of the data (i.e. A and B now have entirely seperate MEMPTRs). If A is a function that returns a MEMPTR B, then how do I free up the memory used by A's Memptr AFTER...
  5. G

    netscape equivalent of shdocvw.dll

    Hi, I'm using the Microsoft Web Browser OCX (shdocvw.dll) as an html viewer but would like to know if there is a Netscape/Mozilla equivalent to this. Cheers
Back
Top