if (code it in VFP for use in the program) = problem if (code a simple PRG just to call the activeX)= problem if (above PRG-code translated into VB) = problem get some rest if above VB-code translated into c++ = problem get some rest endif else if (retranslation into vfp) = problem if (calling VFP_App.Exe as activeX) = possible make the VB app the "main" and ask VFP via COM for the variables ** great for batch jobs / datacrunching else create a VB COM project build some VB methods to set properties from VFP call from VFP set the properties via COM call a "activate" method in your VB-com-object in "activate" read out the properties into the variables call the activeX with the tested code (check perf - this is trial'n'error and marshalling can hurt you) endif else get a lot of rest - I must have missed something ;-) endif endif endifThe technique above is great if you have "semi-constants",