Recent content by mbouchard

  1. M

    Alternative to SmartFolder?

    Hi, I've used the MS tabstrip OCX control for years to do this - I set up a frame for the data that is to be displayed for each tab selection, and then display or hide the frames based upon the tab that is selected. You s/b able to find it in comctl32.ocx if you are using Windows... --Mike
  2. M

    freeing MEMPTR returned by a function

    I understand what you're saying - it seems that, based upon the Progress documentation, the function should be causing a memory leak because the local variable Y's memory is not being released with SET-SIZE. I tried a slight modification of your example (I put the SET-SIZE(X) = 0 statement...
  3. M

    freeing MEMPTR returned by a function

    If you return the memptr as an output parameter instead of the return value, you won't have that problem. I tested with this code: DEF VAR i AS INT NO-UNDO. DEF VAR X AS MEMPTR NO-UNDO. FUNCTION mPtr RETURNS INT (OUTPUT thePtr AS MEMPTR): SET-SIZE(thePtr) = 1000. /* here you...
  4. M

    email excel document as attachment

    Hi Obi, You might want to try base64 encoding your attachment. You can find a 4GL utility for base64 encoding here: http://freeframework.org/downloads/new/smtpmail/ There is also a 4GL procedure for sending email listed at that page, you might want to just use that! --Mike
  5. M

    Data Driven Tabstrip without SmartObjects

    Hi, you can remove a tabstrip tab by calling the remove method: chCtrlFrame:TabStrip:tabs:remove(tabIdx). Where tabIdx is the (one-based) index of the tab you don't want displayed. I'm assuming you're using the microsoft tabstrip that comes in comctl32.ocx... Hope that helps...
  6. M

    USE-INDEX use gives different record count

    Hi, I don't think that it's gauranteed that the records will be read in item-id order without the use-index statement, thus explaining why some records are not counted. Note that replacing "use-index main" with "BY item-id BY active" will give the desired results, as would defining your...
  7. M

    prob with excel

    I generally use chr(10) for this, it seems to work OK...
Back
Top