Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replacing a character field with a blank 2

Status
Not open for further replies.

maggielady

Technical User
Jan 3, 2003
60
0
0
US
I have a field that has a character 0 (zero) in it. I would like to make that field blank when there is a 0 in it. I tried to replace the field with " ", "" and nothing works. My brain is fried today, could someone please help?
 
replace mytable.myfield with "" in "mytable" for mytable.myfield = "0"

...the above code is assuming that the table is open and that the field is of character data type.

boyd.gif

 
you can also use
Code:
BLANK FIELDS mytable.myfield FOR mytable.mfield = "0"

hope this helps. peace! [peace]

kilroy [trooper]
philippines

"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get one million miles to the gallon, and explode once a year, killing everyone inside."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top