×
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

making a call to a program from another

making a call to a program from another

making a call to a program from another

(OP)
When I am executing a program, I sometimes need to make a call to another program to do a simple routine. My problem is that I need to use some files in my second program which I do not want to leave open because they are files that I am using in my current program, but can't change the record pointer. How do I close out the tables and such in my program that I make a call to without closing out the tables in my original program? Is there another command other than close tables?

RE: making a call to a program from another

YOU JUST RE-OPEN THE TABLE WITH ANOTHER NAME OR ALIAS SAMPLE.
IF YOU HAVE OPEN A TABLE NAMED VENDORS WRITE THIS
USE VENDORS IN 0 ALIAS OTHER_VENDORS SHARE AGAIN
AND YOU CAN DO ANYTHING IN OTHER_VENDORS WITH OUT CHANGE THE POINTER IN VENDORS IS LAKE OTHER TABLE.

GOOD LUCK

RE: making a call to a program from another

The key in the above post is to use both the "ALIAS newname SHARE AGAIN" this will only work if the table is opened SHARE to begin with

RE: making a call to a program from another

Although the above post have the right answer if you have to open many tables and you want to complicate your life you can create a DataEnvironment Object holding cursors and relationships as in the DataEnvironment of a Form. I know it's too complicated!

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