Return Code always "1" but data is there

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
greggb
Posts: 5
Joined: Mon Dec 01, 2008 6:39 am

Return Code always "1" but data is there

Post by greggb » Mon Dec 01, 2008 6:50 am

I am trying to script an extraction for the first time using Visual Foxpro. Using the sample project (wsh-extract-rate) everything seems to working fine but I always get a return code of "1", not "2" even though I can see the extracted data in the variable. So I know it is finding the extracted data but returns the code indicating "done, but no data extracted".

Can anyone help me with this?
User avatar
Tech Support
Posts: 4947
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: Return Code always "1" but data is there

Post by Tech Support » Tue Dec 02, 2008 2:14 pm

Sorry, that seems to be a "bug" in the documentation. Since Version 6 the return code for success is always 1 as you can use iimGetLastExtract(...) to check if the extraction itself found the data.

The wiki at http://wiki.imacros.net/Scripting_Inter ... turn_Codes seems to be ok, where did you find the return value "2" still mentioned?
Post Reply