Home > Archive > Programming with dBASE > March 2006 > start.prg problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author start.prg problem
John Noble

2006-03-05, 8:27 pm

I have a start.prg program like this:

_app.framewin.text = "Seafood Sales & Tracking System"
do sstMenu.Mnu with _app.framewin
shell(false, true)
do setup.prg

licenseOK = false
do S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse with licenseOK
if licenseOK = true
do mainmenu.wfm
else
msgbox("You are not authorised to use this software", "Cant'proceed", 16)
endif

The start.prg file is inside this folder: S:\SST\Westward\SSTO
BJ\start.prg
along with the exe and other neccessary files.

When I run the exe I run into the following problem the start.prg brings up the following error message on this line

do S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse with licenseOK

I keep getting prompted :
Error: File does not exist: S:\SST\Westward\SSTo
bj\checkSoftwareLice
nse.pro

I dont understand why it is looking inside the SSTOBJ folder for the checkSoftwareLicense
.prg

I have recompiled and rebuilt all the relevent files without success

The program works fine when I run the start.prg fom the navigator.

Any ideas?



Mark Ziburis

2006-03-05, 8:27 pm

You are telling it to DO something and the system defaults to a compiled
program (.pro). If S:\SST\Westward\SSTo
bj\checkSoftwareLice
nse is a
WFM, you must include it in the DO command. If it is something else,
you must put the corresponding extension there. The other possibility is
that the name of the object includes spaces, so you need to put quotes
around the entire name.

Basically, it thinks that you are trying to run a program in the SSTobj,
because that is where your startup program resides.

ex: DO " S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse with licenseOK.WFM"

In other words, what are you trying to run from this command?

Mark Ziburis
John Noble

2006-03-05, 8:27 pm

Mark Ziburis Wrote:
>
> In other words, what are you trying to run from this command?
>

Hi Mark,

I am trying to run a .prg with the DO statement.


I had already tried the following:
do S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse.prg with licenseOK

and
do " S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse.prg with licenseOK"

Still I keep on getting the same error message.

Any other ideas?
Michael Nuwer [dBVIPS]

2006-03-05, 8:27 pm

John Noble wrote:
>
> I had already tried the following:
> do S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse.prg with licenseOK
>
> and
> do " S:\SST\WESTWARD\Extr
as\checkSoftwareLice
nse.prg with licenseOK"
>
> Still I keep on getting the same error message.
>
> Any other ideas?



Is the prg compiled into your exe or is run run via DEO?

Is the pro file really in the path on S:\ or is it in the same folder as
the exe file?

John Noble

2006-03-05, 8:27 pm

Michael Nuwer [dBVIPS] Wrote:

> Is the prg compiled into your exe or is run run via DEO?


All of my apps use separate compiled objects wfo, pro, reo etc.
I then build a prg (in this case called sst.prg which simply calls the start.prg program) I understand this to be DEO but I could be wrong.

>
> Is the pro file really in the path on S:\ or is it in the same folder as
> the exe file?


The pro file that I am trying to access is in
S:\SST\Westward\Extr
as

This is not the same dir as the exe or start.prg. These files along with all the other forms, reports etc are in
S:\SST\Westward\SSTO
BJ

Having just read an article by Ken Meyer on DEO, the problem might have something to do with the [objectPath] in the sst.ini file

Would I need to manually add a path to the [objectPath] list or is this no trelevent?

Thanks,

John



Dan Barbaria

2006-03-05, 8:27 pm


"John Noble" <john@nor-tech.co.uk> wrote in message
news:1sYTBNwPGHA.560@news-server...
> Having just read an article by Ken Meyer on DEO, the problem might have
> something to do with the [objectPath] in the sst.ini file
>
> Would I need to manually add a path to the [objectPath] list or is this no
> trelevent?


If you are in deed running a DEO app and the location of you compiled forms
and programs are not listed in the [objectPath] then indeed add them
manually and give it a try.

Dan B


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com