- Aug
- 2,293
- 111
As I continue to learn more about using the functions in TakeCmd.dll with PureBasic,
I was wondering what the advantages are of using QPuts instead of Command for displaying output.
As an example,
Command allows me to expand TCC internal variables before output;
That is, using Command will display,
using echo,
whereas QPuts will display,
Advice from the plugin experts (@vefatica and @Charles Dye) would be appreciated.
Joe
I was wondering what the advantages are of using QPuts instead of Command for displaying output.
As an example,
Command allows me to expand TCC internal variables before output;
Code:
If Len(theArg) = 0
Command_("echo USAGE: Test %_year-1960",0)
ProcedureReturn #Null
Else
Evaluate_(*lpszString)
theResult = PeekS(*lpszString)
Command_("echo " + theResult, 0)
EndIf
using echo,
Code:
USAGE: Test 2023-1960
Code:
USAGE: Test %_year-1960
Advice from the plugin experts (@vefatica and @Charles Dye) would be appreciated.
Joe