Results 1 to 3 of 3

Thread: Functional operators in calculator

  1. #1

    Thread Starter
    Lively Member Dazzler's Avatar
    Join Date
    Sep 2007
    Posts
    68

    Functional operators in calculator

    Hi all,
    Am having a calculator like computation forms which does some arithmatical operations in a grid...say like this creates a column where a user can create his own formula on grid columns..it works fine... but the problem is, the user needs funtional operations like MAX,MIN between two column data's..how this could be acheived.... can anyone please help me???

    Ex.

    Col1 Col2 Col1+Col2 (User Defined)
    12 10 22
    10 15 25

    Col1 Col2 Min(Col1+Col2)+Col2 ----------> how this could be arrived?
    12 10 20

    Thanks in Advance

  2. #2

    Thread Starter
    Lively Member Dazzler's Avatar
    Join Date
    Sep 2007
    Posts
    68

    Re: Functional operators in calculator

    No one is there to help me out.......... :-(

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Functional operators in calculator

    try like
    iif(col1<col2,col1,col2)+col2
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width