October 06, 2022, 08:42:52 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


SYSTEM Command in User's Guide

Started by Logman, August 20, 2015, 05:22:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Logman

August 20, 2015, 05:22:14 AM Last Edit: August 20, 2015, 05:25:17 AM by Logman
Click on the HELP menu and then select IWBasic User's Guide.

In the User's Guide go to SEARCH and enter "SYSTEM".

Find "SYSTEM" in the Select Topic window. It will bring up the SYSTEM Topic as follows:

====================================
Syntax
SYSTEM(command as STRING, OPT param as STRING)

Description
Runs another executable.

Parameters
command - Executable to run.
param - Parameter for executable.

Return value
None

Remarks
Command must be full pathname to executable or the executable needs to be in the system path.

Example usage
.SYSTEM "notepad.exe" , "c:\\mydocs\\prog.txt"
====================================

PROBLEM - The IWBSTD.INCC lists the SYSTEM command as follows:

$command SYSTEM(command as STRING, OPT param as STRING)

There is no period in front of the SYSTEM command.

EASY FIX: Remove the period from in front of the word SYSTEM in the User's Guide example.

I have used the SYSTEM command and it does not work with a period in front of the command as the example would suggest.

Logman
Education is what you get when you read the fine print.<br />Experience is what you get when you don't!

LarryMc

typo will be fixed in next update

thanks
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library