![]()  | 
CRect:Width
The Width method returns the x dimension, or "width" of the CRect object. The Size method returns both the width and height.
| 
 nWidth = CRect:Width() 
  | 
The following script fragment prints the width of the CRect:
| 
 R = CRect:new()  | 
 -- create a CRect object  | 
| 
 R:Set(100,250,-400,-1200)  | 
 
  | 
| 
 Printf( "Width= %.2lf\n", R:Width())  | 
 -- result: Width = 150.00  |