Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#Include File Example

Status
Not open for further replies.

hankm3

Programmer
Jan 27, 2002
284
US
Hello,

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.

Thanks

Hank camphm@bellsouth.net
 
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
 
Knob,

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.

Hank camphm@bellsouth.net
 
Hello,

Update:

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 !

Hank

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top