Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pasting text to a webcontrol

Status
Not open for further replies.

cmergal

MIS
Oct 16, 2002
18
US
I have a web control on a form that has an INPUT='File' field on it. I want to populate the path programatically from my form to that field. I read that the value property of the INPUT='File' field is protected for security reasons, so I started looking for another approach with the _cliptext and _edpaste. Now I'm stuck, I read VFP documentation on _edpaste and I'm not sure how to implement it and I'm lost can you help me?

TIA,

Carlos
 
Carlos,

Can you give a bit more information. What is INPUT = 'File'? Is the form you are referring to a VFP form or an HTML form?

If you want to navigate to a particular file or web address, call the Navigate() method, passing the file or URL in question.

Mike


Mike Lewis
Edinburgh, Scotland
 
Mike,

The INPUT='FILE' is an HTML variable type as textbox but its purpose is to browse for a file. If you put it on a web page it will place a textbox with a Browse button. There the user can type the file name with path or click the button and browse his computer for a file.

From VFP you can populate HTML textboxes without much problem thru the field's .VALUE property in the webcontrol. The problem here is that the .Value property fot this type of field is read-only for security reasons, so you cannot access it. I am trying to figure out a way to populate that field in the HTML code and the only way I can see how is thru Cut-and-Paste. The thing is that I can populate what I want to paste with the _cliptext but I don't know how to paste that information. I found in VFP documentation the _edpaste function as part of th VFP APIs but I don't understand how to use it. Basically what I need is some guidance using this _edpaste function or something else that will accomplish a paste function.

Hope its clearer now. Sorry for the confusion my head has been "mushed" by this problem and I am not thinking straight anymore.

Carlos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top