Posted: Thu Feb 25, 2021 12:09 am Post subject: Compile problem - Incorrect Number Of Paremeters
When I try to compile the code below I get this error
Error : 130 Line : 19 Incorrect number of parameters. The number of parameters must be [ 3] , in File : "
As far as I can see I have 3 parameters and yet the compiler tells me I need 3.
I have tried putting byref in front of each of them and that does not work.
Code:
$regfile="m128def.dat" $sim' Comment this out for real program Dim p asbyte
p=10 Dim A asstring*16
A ="default string" Dim B asstring*16
B ="123456789012345" Declaresub read_token(pointer Asbyte, result AsString, Abc AsString)
sub read_token(pointer Asbyte, result AsString, Abc AsString)
pointer =2
result ="im changed"
Abc ="changed too" endsub
read_token(p, B , A)' <-----THIS LINE COMPILE ERROR Print p
Print B
Print A
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum