Normal Topic Q&A 5.0:  Clear vs ="" (Read 926 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Q&A 5.0:  Clear vs =""
Jun 8th, 2006 at 8:05pm
Print Post Print Post  
My workorder and invoicing databases have a bunch of money fields.  In various places throughout the programming I have conditionals such as:

Code
Select All
IF #5150="0"
	THEN #5150="" 



Now I know that, in terms of program size, checking for the zero value as "0" takes up less bits than checking for 0.  But as for the second part, clearing the field, which is better: setting it to "" or using Clear()?

And which is better for Sesame?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Q&A 5.0:  Clear vs =""
Reply #1 - Jun 8th, 2006 at 8:34pm
Print Post Print Post  
"" is not type safe and Clear() is. So in Sesame it is best to use Clear().

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged