ErosOlmi
26-09-2007, 12:22
I have a mad idea for the future about the possibility to integrate thinBasic source code with vbs functions source code all inside the same script and let the engine understand it and do relevant steps.
Something like:
FUNCTION [VBS [VBScript|JScript]] MyFunctions()
END FUNCTION
If VBS keyword is present, the function/sub will be passed to VBS engine, executed and value (if function) returned.
I've already done something similar in the past and I'm quite sure to be able to do it.
What do your think? Too much mad?
Biggest problem I can think is thinBasic will be dependant from VBS engine but I'm sure I can make it dynamic, that is VBS engine will be taken into consideration only if script contains VBS functions and not in all cases.
Ciao
Eros
Something like:
FUNCTION [VBS [VBScript|JScript]] MyFunctions()
END FUNCTION
If VBS keyword is present, the function/sub will be passed to VBS engine, executed and value (if function) returned.
I've already done something similar in the past and I'm quite sure to be able to do it.
What do your think? Too much mad?
Biggest problem I can think is thinBasic will be dependant from VBS engine but I'm sure I can make it dynamic, that is VBS engine will be taken into consideration only if script contains VBS functions and not in all cases.
Ciao
Eros