Jump to content
Sign in to follow this  
A.Cyprus

RscHTML and ctrlText

Recommended Posts

Hello all

 

In a dialog I am currently working on, I'm calling htmlLoad on a control of type RscHTML. This works fine, and ctrlHTMLLoaded evaluates true.

 

I'd like to ctrlSetText the content of this control as text of another control, of type RscButtonMenu.

 

However, when I try the following, nothing happens:

 

_ctrl ctrlSetText (ctrlText _ctrlHTML);

 

 

If instead I use,

 

diag_log (ctrlText _ctrlHTML);

 

 

I see the following in my rpt:

 

control[RscHTML]: Unexpected control type [9]

 

 

 My question therefore is:

 

Can ctrlText be used on a control of type RscHTML to get its contents (the html source)?

 

I would have assumed so, given it inherits from RscText.

 

 

Thanks for the help.

 

Share this post


Link to post
Share on other sites

Unfortunately it looks like the error you posted pretty much answers your question (ctrlText can't be used on CT_HTML (control type 9) ). The only other possibility I can think of is to try and htmlLoad to an RscText, but I'm guessing you'll get a similar error.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×