Answering my own question.. I see now that I can create Variables for the ActiveDocument beforehand, then have the Macro set those variables from the values entered on the UserForm, then query those variables from within my VFP.dll.
Now, I need to know if I can create this Macro from within Fox as well as create the userform from within Fox, so I don't need to include these items or expect them to be part of the end users environment.
For anyone who might be interested, I am putting together a Smart Tag Wizard for developers, not necesarily Fox developers. This wizard will allow you to define:
1)What to recognize : regular expressions or values from table lookup in SQL Server,Foxpro,XML,OLEDB,ODBC
2)What Options (verbs ) the end-user will get for the Smart Tag
3)What Actions will be performed in relation to the options e.g. insert value from a data source, insert static values, call stored procedures in either Fox or SQL Server, call a COM object, call a Web Service...
4)Build it and deploy it including all registrations
I will post this as a download, or you can see it's progress on my web site at
www.softlogx.com/products. I'm calling it ComSmart...
Any feedback gets a free copy when ready.
GB