■ WHILE ~ WEND문 사용하기

----------------------------------------------------------------------------------------------------

Dim pArray As Variant

Dim I      As Integer

 

pArray = Array(11, 12, 13, 14, 15, 6, 7, 8, 9, 10)

 

I = 0

    

While I < 10

 

    If pArray(I) > 10 Then

    

        Print Str(pArray(I)) & " is Big";

        

    Else

    

        Print Str(pArray(I)) & " is Small";

        

    End If

    

    Print

        

    I = I + 1

 

Wend

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요