Home > Archive > Programming with dBASE > November 2006 > How to clear a binary field, the simple way









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to clear a binary field, the simple way
Peter Krarup

2006-10-31, 7:13 pm

I have seen the answers on 'How to clear binary field', but I have just a few images in a table that I want to clear: There must be a simple way of removing when viewing the table, please tell me.
Kind regards
Peter Krarup
Jean-Pierre Martel

2006-10-31, 7:13 pm

In article <YFrIj8P$GHA.1684@news-server>, pk@force.dk says...
> I have seen the answers on 'How to clear binary field',
> but I have just a few images in a table that I want
> to clear: There must be a simple way of removing when
> viewing the table, please tell me.


If you want to clear a binary field when simply browsing your table,
first create an empty image. To do that, from the Command window, type
this:
f = new file();f.create("zero.gif");f.close()
That will create an empty gif file.

Then double-click on the binary field: that will load the Image viewer.
Right-click on that viewer, select the pop-up menu item "Import
image...". Select "zero.gif" and click OK. That's it.

Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate
Paul Van House

2006-10-31, 7:13 pm

In article <YFrIj8P$GHA.1684@news-server>, pk@force.dk says...
> I have seen the answers on 'How to clear binary field', but I have just a few images in a table that I want to clear: There must be a simple way of removing when viewing the table, please tell me.
> Kind regards
> Peter Krarup
>

Either delete and recreate the record without an image,
or replace the image with a zero-byte file.

Of course, that is nothing different than what was in the other threads!
--
Paul Van House
remove "_removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Petr Krarup

2006-11-03, 5:12 am

Jean-Pierre Martel Wrote:

> In article <YFrIj8P$GHA.1684@news-server>, pk@force.dk says...
>
> If you want to clear a binary field when simply browsing your table,
> first create an empty image. To do that, from the Command window, type
> this:
> f = new file();f.create("zero.gif");f.close()
> That will create an empty gif file.
>
> Then double-click on the binary field: that will load the Image viewer.
> Right-click on that viewer, select the pop-up menu item "Import
> image...". Select "zero.gif" and click OK. That's it.
>
> Jean-Pierre Martel, editor
> The dBASE Developers Bulletin
> Blue Star dBASE Plus Core Concepts Graduate


Thank you for your help - I will try that
Peter
Jean-Pierre Martel

2006-11-03, 7:13 pm

In article <MRu2Ihz$GHA.2044@news-server>, pk@force.dk says...
>
> Thank you for your help - I will try that


You're welcome. Good luck!

Jean-Pierre Martel, editor
The dBASE Developers Bulletin
Blue Star dBASE Plus Core Concepts Graduate
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com