
-----------------------------------
randomperson#5
Sun Jun 11, 2006 2:31 am

piano keyboard help
-----------------------------------
hi...someone pleasee help me.... i'm desperate!! i'm making this piano keyboard program, it kind of works, but the program keeps crashing, and says "variable has no value".  
%Some random parts of my code
var notes : array 1 .. 53 of string
procedure processPlay
    for x : 1 .. totalInput
        play (notes (x)) %variable has no value
    end for
end processPlay

procedure userInput
        for i : 1 .. 53
        buttonwait ("down", rangex, rangey, button, buttonupdown)
        for x : 0 .. 120 by 30
            if rangex >= 0 + x and rangex = 470 and rangey = 630 and rangex = 80 and rangey 