Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebControl
Message
 
 
To
18/05/2003 22:15:51
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00789864
Message ID:
00789865
Views:
20
This message has been marked as the solution to the initial question of the thread.
For checkboxes you should use Checked property.
WITH THISFORM.WebControl.Document.Forms("MYFORM")
  ? .Elements("MYCHECKBOX" ).Checked
  .Elements("MYCHECKBOX" ).Checked = .T.
BTW, you can use < pre > and < /pre > tags (no spaces) to preserve code (including HTML) formating.

>Hi,
>
>I'm building a desktop application wich has a form that contains an ActiveX WebControl (Shell.Explorer.2).
>
>The webcontrol points to a page with the following HTML code :
>
><FORM NAME="MYFORM">
><INPUT NAME="MYCHECKBOX" TYPE="checkbox">
></FORM>
>The problem is that the following command :
>THISFORM.WebControl.Document.Forms("MYFORM").Elements("MYCHECKBOX" ).Value
>always return "ON" whenever the box is checked or not !
>
>I can set the value for all the other type of control but the checkbox.
>
>What am i doing wrong ?
>
>Please help.
>
>Charles
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform