Changed param

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Sandra

Changed param

Post by Sandra » 08 Jan 2007, 15:57

 Posted by:  Sandra 

example:
PGM1.EXE

Code: Select all

Call SalLoadAppAndProcessMsgs( "pgm2.exe" || ' ' ||
     Param1 || ' ' ||
     Param2 || ' ' ||
     Param3 || ' ' ||
     Param4,
     Window_Normal, nError )
Now, I change the Param1, Param2 and Param3 in Applciation pgm2.exe, when I
return in PGM1.exe how can I use the changed param in Application pgm1.exe.

Thanks

Thomas Lauzi

Re: Changed param

Post by Thomas Lauzi » 08 Jan 2007, 16:12

 Posted by:  Thomas Lauzi 

Hi Sandra,
start your programms only with a .ini file as parameter and store your
variables in the .ini file.
then you can store the new variables from pgm2.exe into the file and return
to pgm1.exe.
Pgm1.exe can now read the varibales out of the file.

e.g.
SalLoadAppAndProcessMsgs( "pgm2.exe" || ' -file ' || sFileINI)

Regards,
Thomas L.

michael
Germany
Posts: 280
Joined: 07 Jun 2018, 15:13
Location: Stuttgart, GER

Re: Changed param

Post by michael » 24 Jan 2007, 17:00

 Posted by:  Michael Hummel 

good solution,
but store file in the user tempfolder (%TEMP% -> visdosgetenv("TEMP") ).
on computer with Admin account it will always run, on computer with "normal
users" you´ll be successful when you write in the %temp%

or use registry HKCU

micha

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests