Skip to content

PCount() and a single NULL param #1016

@Karl1155

Description

@Karl1155

PCount() returns 0 when I pass a single NULL param. There is no problem if more than one NULL param is passed.

The Fox- and VO-dialect results are the same.

FUNCTION Start() AS VOID 
	
? TestNullParams()	  // ok, 0
? TestNullParams(NULL)  // 0 <--- instead of 1
? TestNullParams(NULL,NULL) // ok, 2 
? TestNullParams(NULL,NULL,NULL) // ok, 3 
? TestNullParams(NULL,NULL,NULL,NULL) // ok, 4 	 

RETURN

FUNCTION TestNullParams( one , two , three ) AS INT CLIPPER
	
	RETURN PCount() 

Karl-Heinz

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions