zfisherdrums Posted November 27, 2007 Share Posted November 27, 2007 Branching off this post slightly. Are there any other ways to pass a NULL value to an object's method? I've tried empty strings and '0' to no avail. Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Kerros Posted November 27, 2007 Share Posted November 27, 2007 chr(0x00) would be null Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
zfisherdrums Posted November 27, 2007 Author Share Posted November 27, 2007 Hello Kerros, CHR( 0x00 ) would be a Null character. I believe that is different than a NULL value. I gave it a college try on the code anyway and it didn't fly. Thanks for the quick reply, though. Zach... Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 27, 2007 Moderators Share Posted November 27, 2007 (edited) $obj.Nothing doesn't work? (Really no idea, but I believe I've seen it before in use somewhere... Just taking a stab) Edited November 27, 2007 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
zfisherdrums Posted November 27, 2007 Author Share Posted November 27, 2007 (edited) $obj.Nothing doesn't work? (Really no idea, but I believe I've seen it before in use somewhere... Just taking a stab)Frayed Knot. I don't see any properties or enumerations that would return a NULL value either.From the MDAC SDK: To disconnect a Recordset, open it with a cursor location of adUseClient, and then set the ActiveConnection property equal to Nothing. (C++ users should set the ActiveConnection equal to NULL to disconnect.)Zach... Edited November 27, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 27, 2007 Moderators Share Posted November 27, 2007 You need to use the "default" keyword and it will work. Link to comment Share on other sites More sharing options...
zfisherdrums Posted November 27, 2007 Author Share Posted November 27, 2007 (edited) Unless I'm implementing it incorrectly, I've tried using that and received the following message:==> The requested action with this object has failed.: $objRecordSet.ActiveConnection = Default $objRecordSet.ActiveConnection = Default^ ERROR Edited November 27, 2007 by zfisherdrums Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted November 27, 2007 Moderators Share Posted November 27, 2007 Unless I'm implementing it incorrectly, I've tried using that and received the following message: ==> The requested action with this object has failed.: $objRecordSet.ActiveConnection = Default $objRecordSet.ActiveConnection = Default^ ERRORTry... $objRecordSet.ActiveConnection(Default) Link to comment Share on other sites More sharing options...
zfisherdrums Posted November 27, 2007 Author Share Posted November 27, 2007 Tried it and fried it. I can definitely retrieve results from my data store without disconnecting the ActiveConnection. But following the MS Support entry for setting Activeconnection = NULL is giving me a headache. I'm going to go do some research. Thanks for continuing to help me out. Zach... Identify .NET controls by their design time namesLazyReader© could have read all this for you. Unit Testing for AutoItFolder WatcherWord Doc ComparisonThis here blog... Link to comment Share on other sites More sharing options...
DaleHohm Posted November 27, 2007 Share Posted November 27, 2007 Also try: $oAC = $objRecordSet.ActiveConnection $oAC = "" or $oAC = $objRecordSet.ActiveConnection $oAC = Default Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now