Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Paradox Version of a Database Table 1

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
0
0
GB
The following code was submitted a while back in this forum to enable me to access the Paradox Version number (e.g 5 or 7), it seemed to work at first but it seems to be quite unpredictable now and does not always return a number I can use as the version number. Can anyone suggest any way of rectifying this? Your help would be much appreciated :)

uses BDE;

function GetTableLevel(DBHandle: hdbiObj; var TableLevel: longint): word;
begin
Result := 0;
Check( DbiGetProp( hdbiObj( DBHandle ), curTableLevel, @TableLevel,
sizeof(TableLevel), Result));
end;

procedure TForm1.Button1Click(Sender: TObject);
var
liLevel : LongInt;
begin
getTableLevel( hdbiObj( Table1.Handle ), liLevel );
showMessageFmt( '%s is a Level %u table.',
[ Table1.TableName, liLevel ] );
end;
 
Thank you so much! I didn't realise it was that easy!!! Thanks again! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top