dcsimg
Results 1 to 2 of 2

Thread: [RESOLVED] cannot figure the calculation values

  1. #1

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,041

    Resolved [RESOLVED] cannot figure the calculation values

    i have a sms form that sends sms to customers
    the user can send in the text body up to 134 characters that is the limit

    now if a user types a msg until 70 characters then he is charge with 1 sms only
    if he passes the 70 characters then he his charged with 2 sms

    i also have characters counter (Label4.Caption = Len(Txtmsg.text)

    Txt(1).Text is the SMS Balance

    i also have a listview with the customers phone number and and a Lable caption that counts to how many customers i want to send SMS
    what i cant figure out is i give a example
    e.x - if the User has 5 credits of sms left in his balance
    and he wants to send to 5 customers but 134 characters (which is 2 msges meaning 5 X 2 = 10)
    then he cannot do that because he has only 5 sms in the balance and 134 characters are charged X 2
    how do i determine and display a msgbox that he is trying to send 134 (2 msgs) characters to the 5 customers
    and tell him that he can send only 70 characters because his balance is not enough?
    --------------------------------------
    Code:
    Label4.Caption = Holds the characters Count in the txtbody msg
    
    Txt(1).Text = Holds the Balance of the sms credit
    
    Label(1).Caption = Holds the Count of the selected customers in the listview
    i know my english stinks
    but i hope i am understood

    any help will be appriciated
    regards salsa31

  2. #2

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,041

    Re: cannot figure the calculation values

    got it fix

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width