<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Dear NZ Group,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>If I set the helpkey string at run time, and immeadiately
showmessage it. its there ok.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> thisCOntrol :=
thisForm.Controls[countCntrls ] ;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> if (thisCOntrol.HelpKeyword = '') and
fileexists(pancommonvars.panProgPath + 'html\'+buildKYWRD + '.html')
then<BR>
begin<BR>
thisCOntrol.HelpKeyword := buildKYWRD
;<BR>
thisControl.HelpType := htKeyword;</FONT></DIV>
<DIV><FONT
size=2>
</DIV>
<DIV>
// *** both the following (equiv) work and show the string
in buildKYWRD </DIV>
<DIV><BR> showMessage(thisForm.Controls[countCntrls
].HelpKeyword );</FONT></DIV>
<DIV><FONT
size=2>
showMessage(thisCOntrol.HelpKeyword )<BR>
end;</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>However when I later access it in the same sesion of the
application - (with no code that removes it in the project at all) -
its blank.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> // this comes out blank!</FONT></DIV>
<DIV><FONT size=2>
showmessage((screen.ActiveControl as tcontrol).HelpKeyword);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Can this property be set at runtime? </FONT></DIV>
<DIV><FONT size=2>Should it persist for the current sesion of the
application?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I'm using D2005 PRO UPDATE 3</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Paul</FONT></DIV></BODY></HTML>