Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Math problem
Message
 
 
To
06/06/2007 15:20:43
Victor Chigne
Inteliventas
Peru
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01231080
Message ID:
01231085
Views:
13
Victor,
Sylvain


Ok it is good...
UPDATE AgendaPhar SET ;
  nconshebd = ;
  NVL( TpsMoyHebdo.nSumConsReally / TpsMoyHebdo.nDate , 0 ) ,;
  dprevision = ;
  VP_date + ;
  ICASE( AgendaPhar.nconshebd # 0.00 , FLOOR(  AgendaPhar.nstkjour / AgendaPhar.nconshebd ) , 0.00 ) ,;
  dprevisioncmd = ;
  ICASE( EMPTY(  AgendaPhar.dprevision ) ,  AgendaPhar.dprevision ,;
  MAX( AgendaPhar.dprevision - ( TpsMoyHebdo.isemcmd * 7 )  ,  VP_date ) );
  FROM  AgendaPhar ;
  LEFT JOIN TpsMoyHebdo ON TpsMoyHebdo.itraiterId = AgendaPhar.itraiterId
THank


bernhart


>12/0 isn't 0. Try IIF (x=0,0, y/x)
>
>
>>Hi all,
>>
>>
>>I want 12 / 0 give 0 .... it 's possible WITH VFP 9 ? ( How )?
>>NVL( 12 / 0 , 0 ) and EVL( 12/0 , 0 ) are'nt Good...
>>
>>Good evening
>>
>>
>>bernhart
Previous
Reply
Map
View

Click here to load this message in the networking platform