Author Topic: Endif Problem  (Read 2004 times)

0 Members and 1 Guest are viewing this topic.

Peter

  • Guest
Endif Problem
« on: December 20, 2012, 12:34:09 PM »
Deleted
« Last Edit: May 05, 2015, 11:43:08 AM by Peter »

Charles Pegge

  • Guest
Re: Endif Problem
« Reply #1 on: December 20, 2012, 01:08:44 PM »
Hi Peter,

It appears to be a mysterious invisible character somewhere

Cleaned up:
Code: [Select]
sys ppmHandle[128]
ppmHandle[1]= GetMemory 512

Sub FreePPM()
    sys u
    for u=1 to 128
       if ppmHandle[u] >0
          FreeMemory ppmHandle[u]
       endif
    next
End Sub

Charles

Charles Pegge

  • Guest
Re: Endif Problem
« Reply #2 on: December 20, 2012, 07:36:11 PM »
Hi Peter,

I think it was a null character, which would be interpreted as 'end of source code'

Rounding seems okay, I would need to see the expression you use. But using round() should resolve the problem.

Charles