int? maxLocale = MaxLocali.qryMaxLocale();
int MaxIdLocali = 0;
if(maxLocale.HasValue)
MaxIdLocali = maxLocale.Value;
Se sei sicuro che venga restituito un valore:
int MaxIdLocali = MaxLocali.qryMaxLocale().Value;
PS. Date un occhiata ai [type]?... sono FANTASTICI!!!!
Andrea - http://www.MelisWeb.eu/