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
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...
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.