I'm trying to post ads to craigslist with the webbrowser control on a VFP8 form. The problem is that some of their field names contain hyphens and the field names are random. I've been able to determine the field names and store that to a variable.
Any suggestions on working around this ?
TIA
Code:
lcVar="U2FsdXi7zNc6fzDiYHSJQCOt21hVLWm9HBeaVf1XwLmNNna6TW2"
lcCmd="THISFORM.oBrowser.DOCUMENT.ALL."+lcVar+".VALUE = 2"
&lcCMD && works
lcVar="U2-19ki7zNc6fzDiYHSJQCOt21hVLWm9HBeaVf1XwLmNNna6TW2"
lcCmd="THISFORM.oBrowser.DOCUMENT.ALL."+lcVar+".VALUE = 2"
&lcCMD && syntax error
Any suggestions on working around this ?
TIA