Question : Capturing Subject for Reply and Forward

Have a couple forms that I use as tracers. I have added a Reply and Forward button to the top of the form. For the reply I was using the code below to pre fill the reply. What I want to do instead is have the have capture the text that I have in the subject line drop that into the Reply with Re: preceding it.

@Command( [MailComposeMemo] );
@Command([EditGotoField] ; "EnterSendTo");
@Command([EditInsertText] ; "IB_ID Release Management");
@Command([EditGotoField] ; "Subject");
@Command([EditInsertText] ; "Release Me Inquiry");
@Command([EditGotoField] ; "Body")

Similar idea with the forward button. How do I capture the value in the Subject line and then add that to the subject of the forward. The @Command([MailForward]) does not bring the subject line with it.

Answer : Capturing Subject for Reply and Forward

You could try the following code, but I don't know exactly what'll happen:

tmpSubject:= Subject;
@Command( [MailForward] );
@Command([EditGotoField] ; "Subject");
@Command([EditInsertText] ; "Forwarding: " + tmpSubject);
@Command([EditGotoField] ; "Body")

What was the code you tried?

There's one obscure function that you might need, but I have to look it up, it's well hidden in the Help db... Ah, gotcha!

@UpdateFormulaContext

Maybe the code should be like this:

tmpSubject:= Subject;
@Command( [MailForward] );
@UpdateFormulaContext;
@Command([EditGotoField] ; "Subject");
@Command([EditInsertText] ; "Forwarding: " + tmpSubject);
@Command([EditGotoField] ; "Body")
Random Solutions  
 
programming4us programming4us