Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Comix 3.0 Reference Manual - <b>what causes an alias not found error?</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
What causes an "Alias Not Found" error?

This problem usually arises when you are using the APPEND FROM command.

Consider this: 

    use demo1 alias booboo 
    index on booboo->last tag last 
    close all 
    use demo2 
    append from demo1           && Results in alias not found.  

Why? This is what happens when you do the APPEND FROM:

    1. demo1 is brought into use
    2. demo1.CDX is automatically opened
    3. The tag last is referenced in demo1.CDX and Clipper can't find the
       alias booboo referenced in the index expression.

To make it work, change it as follows:

    use demo1 alias booboo 
    index on booboo->last tag last 
    close all 
    use demo2 
    cmxAutoOpen(.f.)            && Don't auto-open structural index
    append from demo1 
    cmxAutoOpen(.t.)            && Restore auto open to default



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson