window - Send parameter to an already open foxpro program -


i have program i've made in visual foxpro , can open parameter. shortcut properties:

target:   c:\data\test.exe "5035246" 

that opens program , opens form i've created , shows me info id 5035246.

now if want open different id shortcut (while first window still open) opens instance of program, want open in open program (and later change displaying id in form).

so how can send parameter open program?

edit: have found code checks if instance of exe running , if quits, not solve other question; pass parameter open program.

if want send multiple signals executing foxpro program outside source, need either utilize com reference object, or can instead use intermediary data store (dbf, txt file) program checks on regular basis.

the best solution, if have use foxpro, have commmand-line program job accept arguments, obtain refernce seperate, main exe, , send programs. following:

parameters tcarg oapp = getobject("yourapp.mainclass") oapp.sendarg(m.tcarg) 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -