1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

VB6 Calculator

Discussion in 'Coding, Programming' started by fazz12, Jan 26, 2014.

  1. fazz12

    fazz12 Addict Established

    Just in case lang po me nangangailangan. VB6 calcu with source code.


    update: yung calcu2 mejo rush pero me multiple input. unting kalikot na lang dun ayus na yun. patry na lang.
     

    Attached Files:

    You must or Register to view Attachment.
    Last edited: Jan 26, 2014
    cloudfiers, icklifz, yvi927 and 9 others like this.
  2. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    _pwede ba gawing , multiple inputs? i mean, sana pwede yung 5+5+5 , ? 15 answer
     
  3. fazz12

    fazz12 Addict Established

    ah sige wait lang
     
    RiRA likes this.
  4. Glen..... Ikaw Ha
     
  5. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    _hahah , ana lang :D
     
  6. fazz12

    fazz12 Addict Established

    patry na lang boss yung calcu2
     
  7. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    error dito
    ************************
    Private Sub Command15_Click()
    Display.Text = CStr(sc.Eval(Display.Text))
    End Sub
    *************************
    pwede pa.check ulit boss
     
  8. fazz12

    fazz12 Addict Established

    paki sunod na lang p yung instruction sa text file na sinama ko. may SS na din po sa loob nito. thanks.
     

    Attached Files:

    You must or Register to view Attachment.
  9. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    _salamat ulit, ayos na (y)
    .tanong ko lang, saan banda dun sa code kung paano ginawa yung operation?
    .ano ibig sabihin nito " CStr(sc.Eval(Display.Text))"
    .pasensya na beginner pa kasi ako sa vb
     
  10. fazz12

    fazz12 Addict Established

    ok. mejo lengthy to so her we go.
    jan po mismo sa code na "CStr(sc.Eval(Display.Text))" ginawa yung operation, after mo iclick yung =.
    sc.Eval(Display.Text) - it means ievaluate anuman yung laman ng string na nasa Display.Text / iperform anumang operation ang nakalagay. It means kung may + na nakalagay don sa textbox, iadd, kung -, isubtract, etc.
    yung CStr() naman, it means gawing string yung nakalagay sa loob ng "()", which is yun ngang "sc.Eval(Display.Text)". kailangan gawing string ang data type nun para maging compatible sa .Text property ng Display.
     
  11. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    _so di pala manual coding operation ang ginamit dito, hahah
    .ayos din pala. (y)
     
    fazz12 likes this.
  12. nice share boss (y) gamitin natin ito :D
     
    fazz12 likes this.