1. François Van Lerberghe
  2. Valentina Server
  3. Sunday, November 01 2015, 09:21 AM
  4.  Subscribe via email
Hello,

Using Realbasic/Xojo and V4RB 5.8.8.

I have instantiated a connection (myConnection), but the connection is broken (isConnected = False). I want to create it again. Must I close the connection before create a new one ? Must I write :
1)
myConnection.Close
myConnection = nil
myConnection = new VConnection(...)

2)
myConnection = nil
myConnection = new VConnection(...)

3)
myConnection = new VConnection(...)
Comment
There are no comments made yet.
Ruslan Zasukhin Accepted Answer
Hi,

Destructor of a class usually takes care.
* File close it.
* Connection close it.

So case 3) should work fine.

Case 1) also is correct, just more code.


Only for VCursors we did suggest set it = nil asap in separate line.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories