Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Attach_Table
Code looks something like this, with Table_Names set to an @FM delimited list of tables. And the directory contains a bunch of rev files. Files where originally attached in a different location and copied to this buffer directory where they are then re-attached.
Dir_Name = "C:\Users\jimva\AppData\Local\Temp\TACTIC_BUFFER\5\"
Call Attach_Table(Dir_Name, Table_Names, "", "")
Tables are not attached Status() returns zero. This code works fine in OI 9.4 is something different in OI10?
Dir_Name = "C:\Users\jimva\AppData\Local\Temp\TACTIC_BUFFER\5\"
Call Attach_Table(Dir_Name, Table_Names, "", "")
Tables are not attached Status() returns zero. This code works fine in OI 9.4 is something different in OI10?

Comments
Try attaching via the dataBase manager in the IDE and see if you get a response
If this matches your situation, create a revparam file with a ServerOnly=0 line.
The files are originaly attached in c:\oi10\data\base\ and show up in the tool panel database as tables.
All the following is done in RBasic.
I then deatch the files. They no longer show up in tool panel database.
Copy them to a new loaction and attach them. They do not attach and I can not open them.
They do not show up in tool panel database.
I do not have a revparam file, adding one had no effect.
Call Attach_Table(Dir_Name, "", "", "")
and also doing:
loop through the Table_Names and attach individually
Note:
Ensure that Table_Names are @fm delimited
If that works, then report the issue in the Rev Issue tracker.
Copy them to a new loaction and attach them. They do not attach and I can not open them.
They do not show up in tool panel database.
and this...
They are effectively the same operation, but with different results. What am I misunderstanding?
One is all RBasic, the other all in database manager.
Thanks for the suggestions, it helps a lot.
Also, did you check Get_Status() or @FIle_Status get see what error is returned? That might help confirm what is going on.
One last item: confirming if Attach_Table is called in a specific way using the IDE is a perfect use case for Hooking. This will reveal exactly how the arguments are populated.
For me OI10.2.4
Call Attach_Table(Dir_Name, Table_Names, "W_TACTIC", "")
It still didn't work.
Subroutine Test_Jim(Null)
Gosub Get_Table_Names
Call Detach_Table(Table_Names)
Dir_Name = "C:\Users\jimva\AppData\Local\Temp\TACTIC_BUFFER\1"
Num_Tables = FieldCount(Table_Names, @FM)
For x = 1 To Num_Tables
Call Attach_Table(Dir_Name, Table_Names, "W_TACTIC", "")
Next x
Return
Jim - are your tables a member of the W_TACTIC database? I'm just confirming because it is not uncommon for an application to work with tables that are technically a member another database, like SYSPROG or GLOBAL.
Also, based on all that you've already experienced, I would assume that if you detached the "c:\oi10\data\base\" volume and then tried to use Attach_Table to attach those same tables, it will fail. Have you tried that to confirm?
Did @File_Error stay clean for you as well? I don't think you reported back on that. (Previously I wrote @File_Status, but that was a typo.)
Let me experiment.
Edit: It didn't fix it. It's now not detaching the original tables.
So just to reiterate, I used Detach_Table and it worked, I then used Attach_Table on the same location, and it worked. I then ran Detach_Table and it failed.
BTW I have byte compared the rev files and the two sets of files are identical.
The database ID is W_TACTIC, how would I tell if the tables are members of this database. They are attached when I open OI.
Are you using 10.2.3 because I have a similar issue in 10.2.4 but not 10.2.3
OpenInsight Issue Tracking System & Suggestion Box
in Oi9 thru to Oi10.2.3 I could use attach_table to attach tables from a copy of a folder (volume) that is already attached (If done via IDE you get the FS404 error - duplicate voulume names)
Now in OI10.2.4 you DO get that error.
So your volume names ARE different?