Modify

Opened 12 years ago

Closed 12 years ago

#132 closed Feature Request (Rejected)

Nothing and NULL

Reported by: PThornett@… Owned by:
Milestone: Component: AutoIt
Version: Severity:
Keywords: Nothing NULL Cc:

Description

It doesn't seem possible to disconnect an ADO recordset, because the required syntax is missing! What is required is an equivalent to the vbs statement

Set rs.ActiveConnection = Nothing

(there are many more situations where the ability to set something in COM to Nothing would be very useful).

While I'm at it, there's no keyword NULL in AutoIt. Again, there are some situations where this could be usefull (and I don't thing Chr(0) is the same thing in all cases).

Attachments (0)

Change History (1)

comment:1 in reply to: ↑ description Changed 12 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed
  • Version 3.2.10.0 deleted

Replying to PThornett@gmail.com:

It doesn't seem possible to disconnect an ADO recordset, because the required syntax is missing! What is required is an equivalent to the vbs statement

Set rs.ActiveConnection = Nothing

(there are many more situations where the ability to set something in COM to Nothing would be very useful).

I'm sure there's a proper value to assign it to close it. Probably 0 or "". If it's an AutoIt variable, however, assigning it anything will cause the COM object to be released. I would advise asking for support on the forum as I'm certain there is a way to do it without the need for a magical keyword.

While I'm at it, there's no keyword NULL in AutoIt. Again, there are some situations where this could be usefull (and I don't thing Chr(0) is the same thing in all cases).

AutoIt doesn't really need a NULL keyword. We've managed to make it 5 years without one, I think we'll be alright in the future as well.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.