Group - ungroup of commands


Results 1 to 16 of 16

Threaded View

  1. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Group - ungroup of commands

    Still don't work...
    First try:
    Code:
    ;reading buttons on line 2    
        Portb.0 = 0
        TrisA.1 = 1
        pause 10
        status_3 = PortA & %00011100
        Portb.0 = 1
        TrisA.1 = 0
        select case status_3
                     case 20
                     gosub starting
                     While (PortA & %00011100) = 20
                     Gosub VolUp
                     wend
         end select 
    Goto Main
    the "code" generated is ... totally inadequate (picture 1).

    Second try :
    Code:
    ;reading buttons on line 2    
        Portb.0 = 0
        TrisA.1 = 1
        pause 10
        status_3 = PortA & %00011100
        Portb.0 = 1
        TrisA.1 = 0
        select case status_3
                     case 20
                     gosub Starting
                     Gosub VolUp
                     While (PortA & %00011100) = 20
                     Gosub VolUp
                     wend
         end select                       
    Goto main
    the "code" generated is ...full, with "header" at any VolUp command ! (picture 2).
    What do I do wrong ?
    Attached Images Attached Images   

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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