Vb6 type mismatch with random number generator
问题 I wanted to generate a random number between 1 and 20 for a game that I am creating and for some reason this code has stopped working and gives me a type mismatch error, I have tried other generators in the game but I get the same error. Public Counter1 As Integer ' Counters for each reel Public ArrayImgMid1 As Integer ' Store number to iterate over image arrays Public ReelPic1 As Variant ' Array of images for each reel Public Reel1Spin As Long ' Spins for each reel Public ImgBeth, ImgWallow,