Subject Re: db 2019 source aliases
From Andy Taylor <andy.taylor.1959@outlook.com>
Date Mon, 31 Aug 2020 09:08:00 -0400
Newsgroups dbase.getting-started

Edmund,

Your source alias can only point to one folder.
When setting kclasses to \\srv2\data\forms you cannot also have it set to \\srv2\data\controls
I would rename your aliases to cstFrm and cstCtr if you are using separate folders.

To answer your last point, it depends on what other files are in the same folder that the navigator is pointing to!
If you have test.cfo, test.cfm, basebtns.co or basebtns.cc in that same folder they will be used instead.
There is guidance in the OLH under "set Path"

Andy

> Hi,
>
> I've been using dBase 2.6.2 and only just recently upgraded to db2019
> (now that all the WinXP systems are gone).
>
> I tried to open a project(that works under 2.6.2) in dB2019; but
> it errors out:
>
>   Error.  File does not exist.  test.cfm
>
>   File:    testcon.wfm
>   Routine: testConForm::TestConForm
>   Line:    39
>
> On line 39, I have:
>
> class testConForm of TESTCFORM from :kclasses:test.cfm
>
> Now if I remembered, it had something to do with source aliasing.
> However, when I went into my dBase Plus 2.6's source aliasing
> dialog, it's pretty much empty (not a good sign since I do
> recall having something defined).  So I have no settings to
> copy from nor do I remember what I had set.
>
> I added kclasses to the dB2019 source alias, by:
>
>   Alias: kclasses
>   Path: \\srv2\data\forms
>
> That solved that issue; but the system threw another error:
>
> Error: File does not exist: basebtns.cc
>
> which points to the following line:
>
>   set procedure to :kclasses:baesbtns.cc additive
>
> This is where I'm confused because basebtns.cc is in the
> \\srv2\data\controls directory and the test.cfm is in the
> srv2\data\forms directory.  Since this arrangement works
> in 2.6.2, and not working in dB2019, are there changes
> in Source Aliasing that I'm missing?
>
> IIRC, I had set for the 2.6.2 application that all
> custom cc belong to the data\controls dir, and
> the forms go to the data\forms.
>
> To add to my confusion, if I'm running the application
> by clicking on the main WFM file in dB2019 ide, am I
> using Source Aliasing or DEO?
>
> Any help appreciated,
>
> Thanks
>
>
> Edmund