×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

AddAlias Fails Again!!!

AddAlias Fails Again!!!

AddAlias Fails Again!!!

(OP)
I don't get it. Looks just like a sample in the Paradox Manual.

CODE

method pushButton(var eventInfo Event)
var;----------------Declare Variables-------------
Mrmls                table
MrmlsNormalized        table
qbe                        query
endVar;-------------End Variable List-------------
addAlias("MyDir","Standard","D:\\Pdoxwin\\Mrmls")
;----------------------------------------------------------------

qbe=Query

:Mrmls:MrmlsNormalized.db | OfficeID | NormalizedOfficeName |
                          | _ID      | _Name |

:Mrmls:Mrmls.db                | ListId   | ListName |
                               | _ID      | changeto _Name |

endquery
    if not qbe.executeQbe()then
errorShow()
    return
    endif

qbe=Query

:Mrmls:MrmlsNormalized.db | OfficeID | NormalizedOfficeName   |
                          | _ID      | _Name |

:Mrmls:Mrmls.db               | SellID   | SellName |
                                  | _ID       | changeto _Name |

endquery
    if not qbe.executeQbe()then
errorShow()
    return
    endif

endMethod






But is says Alias not opened.

Any ideas?

Thanks

RE: AddAlias Fails Again!!!

Rick,

Please also see my other post to you about addAlias.

Assuming the path D:\Pdoxwin\Mrmls exists your code above will have created an alias to it called "MyDir".  However, you have set your query to read from an alias called "Mrmls" which your addAlias has not created.  (in the ObjectPal examples anything labelled myDir or myTable etc normally means substitute your own name)

Your best bet would have been to use an addAlias instruction of
addAlias("Mrmls","Standard","D:\\Pdoxwin\\Mrmls") rather than addAlias("MyDir","Standard","D:\\Pdoxwin\\Mrmls").

Also rather than hard coding your queries you may wish to create the queries in the Paradox application and use

qVar.readFromFile("your_query")  
qVar.executeQBE()

I believe this is how it is done in Version 8.

Don't worry too much about this example as it is a matter of style and maintenance of delivered applications.

I hope that this helps.

Regards

Bystander

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close