| 
 PureBytes Links 
Trading Reference Links 
 | 
<FONT face=Arial 
color=#0000ff size=2>Thanks TJ!
<FONT face=Arial 
color=#0000ff size=2> 
<FONT face=Arial 
color=#0000ff size=2>d
<FONT face=Arial 
color=#0000ff size=2> 
  
  
  From: Tomasz Janeczko 
  [mailto:amibroker@xxxxxx] Sent: Tuesday, April 13, 2004 9:32 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] 
  Script to automate exporting of EOD quotes and importing into Another DB - 
  Need Help with the oAB.Import.
  
  Dale,
   
  You are not getting error message, but just using reverse 
  logic in this:
   
  if not oAB.Import(0, 
  CSV_FleNam, FmtFleNam) 
  Then                    
  msgbox "Error Running 
  Import"                    
  Exit 
  For                
  end if
  Note that Import function returns not BOOLEAN but 
  integer.
  And ZERO means SUCCESS. Non-zero value are various 
  error codes.
  Your code interprets return value of zero as failure which 
  is wrong.
   
  So you should write this instead:
   
  errCode = 
  oAB.Import(0, CSV_FleNam, FmtFleNam);
  if errCode <> 0 
  Then                    
  msgbox "Error Running Import, Code:" + 
  errCode                    
  Exit 
  For                
  end if
   
  Best regards,Tomasz Janeczkoamibroker.com
  <BLOCKQUOTE dir=ltr 
  ><FONT 
    face=Arial color=#0000ff 
  size=2>
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 |