Paul Fielder
09-16-2006, 12:12 PM
Hi, Since trying Version 1.01 from the Beta I am having problems with Classes:
#Class Deck
Private(Pointer2Deck$);
nProc Create
Local (i$);
Pointer2Deck$ = malloc(DeckMax);
for(i$, 0, (DeckMax -1))
setbyte(Pointer2Deck$ + i$, (i$+1));
// Debug("MemSet: " + (Pointer2Deck$ + i$) + " = " + (i$ +1));
end;
end; //Create
...
The error I get is:
** error ** (e:\pocket whist\class_deck.ppl) Can only declare a variable at func/proc/class main code level! at 'PRIVATE' (19,3)
I have looked into the help but my syntax seems the same as before Version one any light any one! %-6
#Class Deck
Private(Pointer2Deck$);
nProc Create
Local (i$);
Pointer2Deck$ = malloc(DeckMax);
for(i$, 0, (DeckMax -1))
setbyte(Pointer2Deck$ + i$, (i$+1));
// Debug("MemSet: " + (Pointer2Deck$ + i$) + " = " + (i$ +1));
end;
end; //Create
...
The error I get is:
** error ** (e:\pocket whist\class_deck.ppl) Can only declare a variable at func/proc/class main code level! at 'PRIVATE' (19,3)
I have looked into the help but my syntax seems the same as before Version one any light any one! %-6