View Single Post
Old 05-14-2007   #123 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
Quote:
Originally Posted by andbad
what do you mean for "add or remove distance function"?
Between the two versions, the Distance function was moved from ns04mappoint.vbs to ns04master.vbs. It needs to be defined exactly once.

Quote:
Originally Posted by andbad
And i must to change BestSNR with a fix number?
Between the two versions, the OnScanCompleteMappoint subroutine in ns04mappoint.vbs changed from

Sub OnScanCompleteMappoint(BestSNR)

to

Sub OnScanCompleteMappoint()

and the call in ns04events.vbs changed from

If UseMappoint then OnScanCompleteMappoint BestSNR

to

If UseMappoint then OnScanCompleteMappoint

because BestSNR was changed from a passed parameter to a global variable. Therefore, any occurences of OnScanCompleteMappoint should have the BestSNR parameter added or removed so that the definition in ns04mappoint.vbs matches the call in ns04events.vbs.


In a nutshell, VBScript doesn't have optional parameters for user-defined subroutines/functions, so one must specify the defined quantity of parameters.
__________________
For quickest response, catch me on IRC: #wigle
goldfndr is offline   Reply With Quote