[directmusic] Re: Script Weirdness II

  • From: "Dugan Porter" <duganp@xxxxxxxxxxxxx>
  • To: <kcmyoung@xxxxxxxxxxx>, <directmusic@xxxxxxxxxxxxx>
  • Date: Sat, 25 Jan 2003 15:42:08 -0800

For what it's worth, the limitation on script sizes (specifically the
total number of characters in all the identifiers in your script) is
fixed in DX8.1 and beyond...

Dugan Porter - Audio API Dev Lead
This posting is provided "as is" with no warranties, and confers no
rights


-----Original Message-----
From: Kenneth Young [mailto:kcmyoung@xxxxxxxxxxx]=20
Sent: Saturday, January 25, 2003 3:37 PM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] Script Weirdness II


Hey folks,=20

Things have been quiet around here recently; I hope everyone is doing
ok?!!=20

My script has been getting rather obese recently, and I found that I had
reached a limit on its size. So, I've begun converting my project into
multiple scripts (oh joy unbound).=20

I've found that passing a variable to another script, where that
variable is then being checked by an if statement, results in this
error:

<0001> Script error in script.spp, line 244
<0001> Microsoft AudioVBScript Runtime Error: Type Mismatch: the
condition of an if statement did not evaluate to a numeric True/False
value <0001> Error Code: 0x88781224=20

My solution to this is to call a subroutine in the destination script
which "manually" changes the variable. Whilst this solves the problem,
and I have everything working, I was wondering if I was missing
something fundamental?

Cheers,=20


Kenny



Other related posts: