o thanks steve, the compiler was happy with that, however now with this
code:
if tagstring = 'mainlinks' then
begin
//if current action = menu, do not show "return to menu" link
if not ((Sender as TWebActionItem).Name = 'waMenu') then
replacetext :=
Format('<a
href="../cgi-bin/etrace.exe/menu?ID=%d">Menu</a> &nbs
p; ', [iID]);
replacetext := ReplaceText +
Format('<a
href="../cgi-bin/etrace.exe/logout?ID=%d">LogOut</a>
', [iID]);
end; //tagstring=mainlinks
i get this error message (caused by the if statement):
Internal Application Error
Invalid class typecast
----------------------------------------------------------------------------
----
/
wtf??????
> Tracey,
>
> Look to the Sender in the action as in ..
>
> If (Sender as TWebActionItem).Name = 'waMenu' then
> blah;
>
> Steve
>
> Steve Peacocke
> Lecturer, NZ Diploma in Business
> Lecturer, Batchelor of Computing Systems
> Waiariki Institute of Technology
>
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/