How declare a class into SC and instance it?

Hi, i need declare a class at level from project, (i checked in PROGRAMING - LIBRARY - projec library) a file called proy_mov.php:

But when i declare the class thus:
$test = new proy_mov();

i get a error message: Fatal error: Class ‘proy_mov’ not found in C:Program FilesNetMakev6wwwrootscriptcaseappPosMSform_movform_mov.php on line 512

this my class definition:

<?php
class proy_mov
{

var $mov_fcha, $suc_cdgo, $bod_cdgo;	

function __construct(){ 
	$this-&gt;suc_cdgo = 0; 
	$this-&gt;bod_cdgo = 0; 
}   
	
function setSuc($value) {
	$this-&gt;suc_cdgo = $value;
}

function getSuc() {
	return $this-&gt;suc_cdgo;
}	

}

?>

Which is my error? or how can i declare it?

Re: How declare a class into SC and instance it?

Hi,
have a look at the sc_include() macro.

jsb

Re: How declare a class into SC and instance it?

I did same exercise, but i declared GLOBAL and it works fine. When i declare PROJECT level not works, i do not understand wich is the problem.