A,
Ask ace to explain, Delphi Session in the component properties?
Question 2
I want to use the Delphi, the purpose is to think through the BDE access tables in paradox, whether to use the Session components? ,,
Data source OBDC set up, in the BDE Administrator is set up, in just don't know how to get to visit this paradox? O method (contain code and manually)
The younger brother is a novice, so involves many don't understand, but also to understand learning in many aspects, please give a superior glad, thank you
CodePudding user response:
For a long time, don't use DBEparadox code, it should be said that this is the Delphi dedicated database,
CodePudding user response:
reference 1st floor lyhoo163 response: for a long time, don't use DBEparadox code, it should be said that this is a special database Delphi, Boon boon, this I also know that, but I have a link paradox table, want to use the code to access, could you tell me how to set its properties to? Still have a plenty of the session the components, I want to study this component, can explain this to me? Thank you CodePudding user response:
I remember, use the default session, are not directly quoting Tsession, But the default Tsession program, CodePudding user response:
Why not use ADO connection, DBE connection is great, but it should install DBE driver, CodePudding user response:
reference 4 floor lyhoo163 response: why not use ADO connection, DBE connection is great, but it will install DBE driver and I am learning BDE technology now,,, CodePudding user response:
I started out, is to use the BDE, but now use ADO, Suggestions from the perspective of the ADO, CodePudding user response:
With bde can even go on, do not need to take the session component CodePudding user response:
This is a dynamic connect to the database through the BDE, paradox,, procedure TForm1. FormCreate (Sender: TObject); Var Dir: string; The begin GetDir (0, dir); Session. AddStandardAlias (workdata, dir + '\', 'Paradox'); Database1. AliasName:='workdata';//BDE alias connect to the database Settings Dw Database1. DatabaseName:=' ';//procedures set in the alias Table1. DatabaseName:='dw'; Table1. TableName:='operator. Db';//table name end; Procedure TForm1. FormClose (Sender: TObject; Var Action: TCloseAction); The begin Table1. The Close; end; Procedure TForm1. Button1Click (Sender: TObject); The begin Table1. The Open; end; Operation result error,,, GetDir (0, dir); Session. AddStandardAlias (workdata, dir + '\', 'Paradox'); What those words mean? CodePudding user response:
1, GetDir (0, dir); Get the default drive letter The first argument: 1, 2, 3, 4... Corresponding: A, B, C, D... , 0 is the default drive 2, Session. AddStandardAlias (workdata, dir + '\', 'Paradox'); Increase an individual named workdata, database driven PARADOX, storage path for dir + '\' CodePudding user response:
references 9 f lyhoo163 response: 1, GetDir (0, dir); Get the default drive letter The first argument: 1, 2, 3, 4... Corresponding: A, B, C, D... , 0 is the default drive 2, Session. AddStandardAlias (workdata, dir + '\', 'Paradox'); Increase an individual named workdata, database driven PARADOX, storage path for dir + '\' Thank you for your explanation,,, but if I have a Paradox in the database itself, I want to connect to the database, to Workdata database for BDE alias, path on disk C,,, could you tell me how to modify the code to?