Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

select case in mikro basic

Status
Not open for further replies.

peterzatko

New Member
I need to help with select case .How to call a function in case by a number?????????????
Code is in mikro basic.
Please read a code .


..........

Dim i as integer

select case s

case 0
PORTB = %00111111

case 1
PORTB = %00000110

............

case 9
PORTB = %01101111

end select

loop:

For i = 1 to 9

next i

if i = 0 do in case0 ????????? How call function in case 0
if i = 1 do in case1 ??????????How call function in case 1
......
.....
....
if i = 9 do in case9 ????????How call function in case 9

goto loop


.............
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top