View Single Post
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 15th, 2018, 07:28 AM
If you would rather have more specific components on each table, but have the same buy/sell behaviors, you can use procedures for those scripts, which makes for very little copying in order to have the same transaction elements on every component that is the primary component for a table:

Code:
    <!-- Call the appropriate procedures to perform transaction setup, buy, and sell behaviors -->
    <xactsetup><![CDATA[
      call XactSetup
      ]]></xactsetup>

    <xactbuy><![CDATA[
      call XactBuy
      ]]></xactbuy>

    <xactsell><![CDATA[
      call XactSell
      ]]></xactsell>
Code:
  <!-- Procedure XactSetup
        Perform setup of the transaction fields when the user is purchasing an item.
  -->
  <procedure id="XactSetup" scripttype="xactsetup"><![CDATA[

Last edited by Mathias; February 15th, 2018 at 07:32 AM.
Mathias is offline   #8 Reply With Quote