--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/1238599319.75064.1679628994188%40mail.yahoo.com.
Yes, that also came up afterwards as a possibility, even without JPSoft, likeDos( "SET" + " " + name + "=" + value )
but as there thus already exists a GetVarStr() but no similar SetVarStr() itis thus a missing keyword e.g.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/CAKBEyX-CwvfRgT%2BPwMULMfg_6iWEf6TpFLJVRZeWvyqzckivOw%40mail.gmail.com.
@Jose,
Using the Dos(“set …”) command from TSE can set an environment variable in that Dos child process, but the environment variable will only exist in that child process, and not be available in the parent TSE process or other child processes that the TSE process starts.
@HP,
According to its documentation, “setx” can set environment variables in future command windows, but a simple test shows that that does not include Dos() child processes prom TSE.
The way Knud’s request reads, is that per his example he wants
to set a new environment variable (value) from TSE,
to use TSE’s Dos() function to start a child compilation process from TSE
and reference the new environment variable (value) in the child process.
Currently the referenced Windows API is one way to do that.
Carlo
@Jose,
Using the Dos(“set …”) command from TSE can set an environment variable in that Dos child process, but the environment variable will only exist in that child process, and not be available in the parent TSE process or other child processes that the TSE process starts.
@HP,
According to its documentation, “setx” can set environment variables in future command windows, but a simple test shows that that does not include Dos() child processes prom TSE.
The way Knud’s request reads, is that per his example he wants
to set a new environment variable (value) from TSE,
to use TSE’s Dos() function to start a child compilation process from TSE
and reference the new environment variable (value) in the child process.
Currently the referenced Windows API is one way to do that.
Carlo
--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/001101d95efd%2494a63e40%24bdf2bac0%24%40ecarlo.nl.
Jose,
You might be right about TCC’s capabilities, but your example is incomplete.
The request was for a/another child process of the same TSE session to be able to use it.
When you run the macro below, does the Dos() function AFTER the warning and message display the same value as the warning and message?
proc Main()
integer n = Random(1, 1000)
// Dos("Set OUTSIDE=VALUE" + Str(n))
Dos("C:\TCC\TCC.exe /c set /s OUTSIDE=" + Str(n))
Message('OUTSIDE=', n)
Warn('OUTSIDE=', n)
Dos("set OUTSIDE")
PurgeMacro(CurrMacroFilename())
end
Aside, just to be extra safe I would not use a system-wide "global" variable to communicate between a parent and child process, because then processes running at the same time might overwrite each other's variable values.
--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/semware/000601d95f14%2445c4cb90%24d14e62b0%24%40ecarlo.nl.