• Hello.

    Good afternoon to all.
    I would like to ask if you could help me in my programs in changing the Adeg I have made buttons which will change the value of Adeg by increments of 5 as an example. Im using IF and ELSEIF but since the increments is by 5 the method I made is so long before i reach elseif !Adeg.eq(355) then adeg 0. Another problem is how do i change the rotation instead of increasing in degree to decreasing in degree value.
    I'm very new in doing this and doing a self study.

    Thank you in advance and hope someone can offer an assistance.

    Thank you and good day
  • [QUOTE=fddelacruz;75806]Hello.

    Good afternoon to all.
    I would like to ask if you could help me in my programs in changing the Adeg I have made buttons which will change the value of Adeg by increments of 5 as an example. Im using IF and ELSEIF but since the increments is by 5 the method I made is so long before i reach elseif !Adeg.eq(355) then adeg 0. Another problem is how do i change the rotation instead of increasing in degree to decreasing in degree value.
    I'm very new in doing this and doing a self study.

    Thank you in advance and hope someone can offer an assistance.

    Thank you and good day

    offcourse use (-) minus before angle (ex: 45, -45 etc).

    r u using "buttons" or "options". if u use options through array method

    senni
  • define method .deg()
      !adeg = !!ce.adeg

      !adeg = ($!adeg + 5)
     
      if !adeg.eq(360) then
         !adeg = 0
      endif

      adeg $!adeg
    endmethod