Y doesn't increment

Just starting out? Need help? Post your questions and find answers here.
chippy73
User
User
Posts: 59
Joined: Wed Feb 16, 2005 6:11 pm
Location: S.W.Wales

Y doesn't increment

Post by chippy73 »

I can't see why Y won't increment. Is it something to do with the StrartDrawing command?

The code below is obviously only a part of the main program.

Any comments most welcomed.

Alan


Code: Select all

 StartDrawing(WindowOutput())
  DrawingMode(0)
  For y=1 To 50

  For s=0 To #fft_SampleSize/2 
    For x=1 To 300
    Plot(x,y,fv(s))
    Debug y
  Next x
  Next s

Next y 
  StopDrawing()
PB v3.94 PVXP v2.13 JaPBe v2.5.4.22
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: Y doesn't increment

Post by traumatic »

Works fine here, it just may take some time depending on #fft_SampleSize ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
chippy73
User
User
Posts: 59
Joined: Wed Feb 16, 2005 6:11 pm
Location: S.W.Wales

Post by chippy73 »

Mmmm, very strange.

I took out the debug y and it worked.

The fft_SampleSize is only 512 at the moment, and it doesn't take long to process.

Thanks for your comments

Alan
PB v3.94 PVXP v2.13 JaPBe v2.5.4.22
Post Reply