I'm attempting to Create an #Include <file.inc> that will Define some Variables and Contain some Functions. Does anyone have any Examples that they could Post.
If you look at the file ripdlt.inc in your ASPECT\Host directory, it has a couple functions that are included in _host.was file. Hopefully that will get you going (I don't have any examples of my own).
aspect@aspectscripting.com
Got it figured out. It seemed to be a Passing Problem from the Script to the Function in the #Include File.inc File. Had to Define the Token Field Separators in the Script and then Passit to the Function in the #Include File. Will work on this some more and send itto your Web Site as an Example for Others.
The Help Files indicate that you can Create an INC/H File to contain #Define or Functions and basically must be Stand-Alone INC Files. So, per the Help Filea you must have Several INC Files that can be Used by Other Scripts !
Well there is a Work-Around.
You CAN have a SINGLE INC File that contains MULTIPLE Functions and Defines that are only Called from the Main Script of any Script. Script1.was / Script.was / Script3.was can use the Same INC File, and only use the Functions and Defines they Need; but all the other Functions and Defines are ignored !
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.