Blitz (96/144)

From:Tony Rolfe
Date:23 May 2001 at 08:25:34
Subject:Re: BlitzII - Question of logic?

On 22 May 2001, at 11:51, David McMinn wrote:

> Hi Tony
>
> > Then I simply attempted to load and execute the routine. If it
> > worked then the number was valid. If the routine didn't exist then
> > the figure was invalid.
> >
> > Not sure how to that in Blitz, but it might be worth thinking about.
>
> var.w = 23131
> pn$="ExternalProg_"+Ustr$(var)+".exe"
> Execute_ &pn$,0,0
>
> Although you've then got the problem of getting a return value from
> the external program. You could maybe set and ENV-var I suppose.
>
You also have the problem of passing data to the program in the
first place.

Actually, these are the same problem, really - pop a file into ram?,
must be a better way?

What happens if the program doesn't exist? Can you get a clean
"executable not found" or "file not executable" response from the
OS?

Cheers

Tony

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie