Array Help

Results 1 to 3 of 3

Thread: Array Help

  1. #1
    Ed Croson Guest

    Default Array Help

    I need to return a shipping charge on a form, based on the total cost of an order. There are 8 price ranges (of total cost) corresponding to 8 shipping charges. I was thinking building an array would be a good way to do this, rather than a bunch of &#039 If Then&#039s &#039, and also better than going to a table in a database to match up values. From what I have seen, I believe a 2 dimensional array would work well, but I have NO experience with arrays.<BR>Can anyone give me some help on building an array that would match up the order total with the correct shipping charge?<BR><BR>Thanks,<BR>Ed Croson

  2. #2
    Join Date
    Dec 1969

    Default RE: Array Help

    Ed: Don&#039t know if I would use an array to do this. What happens if you need to update the shipping table? Better to manage this in a database. Centralizes the information and provides more flexiblilty for the future

  3. #3
    phanindra.t Guest

    Default RE: Array Help

    instead of doing that use<BR>select (case) type<BR>case1:<BR>case 2:<BR><BR><BR>i did&#039nt remember the correct syntax <BR>please refer book reagrding the above use that it may work for you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts