[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Help - Type Miss Match - assignment failed



PureBytes Links

Trading Reference Links


<FONT face="Comic Sans MS" color=#0000ff 
size=2>In VBScript, you can use MsgBox to display the contents of 
variables, for example:
<FONT face="Comic Sans MS" 
color=#0000ff size=2> <SPAN 
class=410053012-18042002>Call MsgBox("Value of Trigger = " & Trigger & " BSSC = " & AFL("BSSC") & " Stop Loss = " & SL & " for stock " & Stock, 64, "Check!") 
<FONT face="Comic Sans MS" color=#0000ff 
size=2>Another thing to do to debug your code is to comment out 
lines one by one using the single quote mark '  until the error goes 
away.
<FONT face="Comic Sans MS" 
color=#0000ff size=2>Then the last line you commented out may turn out to be the 
source of the problem.
 
<FONT face="Vladimir Script" color=#000080 
size=5>Rick

<FONT face=Tahoma 
size=2>-----Original Message-----From: loulh 
[mailto:loul@xxxx]Sent: Thursday, April 18, 2002 12:34 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]Help 
- Type Miss Match - assignment failedTwo questions, 
first, is there a way to use Microsoft's VBscript Debugger on AFL script 
programs?  Second, the following simple code gets the above error, 
what could be wrong?  The "assignment failed" occurs when running 
"explore".  Any and all help appreciated.loul<%C = 
AFL("c")for i = 0 to UBound(C)sc(i) = 
C(i)nextAFL.var("SCCI") = SC%>p.s. running VBscript 
ver 5.6Your 
use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.