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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable from Visual foxpro

Status
Not open for further replies.

leonm

Programmer
Aug 10, 2001
3
CA
There is an existing Visual Foxpro program that our company is using and I call it Custom1. Custom1 prompts the user for their login info like their username and password.

I am currently doing a program in VB and will run on a workstation. This program will create a form and populate it with data coming from Custom1. We asked the vendor to do this for us but it is so expensive, so we decided to do it by ourselves in VB. The program needs to pull out data of the user currently log-on to Custom1 in that workstation and populate a form. In other words, I need the username so I can pull-out the data of that user only. The vendor of Custom1 told us that it is stored in a public variable, s_username. Is there any way I can get the value of this variable in VB?

Thanks for anyone who can help me with this.



 
Have you tried writing the user's information to a TXT file while the Custom1 program (written in Visual FoxPro) is active.

If you write the information to a file that Visual Basic can recognize, then your problem should be solved.

Hope this helps. I know more about Visual FoxPro than Visual Basic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top