Processing Table problem in FilePro 4.0
John Esak
john at valar.com
Sat Jun 24 18:48:07 PDT 2006
Don't know why you are doing this code... but, if you want to see something
processing does to a field, you must put a DISPLAY in your code... like
this...
2 -------------------------------------
If
Then DISPLAY; END
This will show the "current" value of 1 whether you've changed it or not.
However, this has nothing to do with actually writing out the record... if
you want the field 1 (and the whole record) immediately "written out" to the
media, then you want to put a WRITE command in your code. like this....
@WEF1 If @CD EQ ""
Then 1 = "1000"+ at RN; WRITE
------------------------------
If
Then DISPLAY; END
But realize that the WRITE will mean the creation date @cd will no longer be
blank for any other tests on this table. The record is "written" at this
point.
--
John Esak
(570) 384-2444
Author of:
The filePro Survivor Series
Complete Video Training For filePro On CD
See samples at: www.valar.com
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.com]On
> Behalf Of rlmuller at uscomputergurus.com
> Sent: Saturday, June 24, 2006 8:52 PM
> To: filepro-list at lists.celestial.com
> Subject: Processing Table problem in FilePro 4.0
>
>
> Hi All,
>
> I'm running FP4.0 over WinXP-Pro/SP2. I've got the following input
> processing table for a two-field MyCust file:
>
> 1 -------------------------------------
> @WEF1 If @CD EQ ""
> Then 1 = "1000"+ at RN
> 2 -------------------------------------
> If
> Then END
> 3 -------------------------------------
> @WLF1 If 1 GT ("1000"+ at RN)
> Then BEEP; SHOW "CustID must be in the range 1001-" &
> ("1000"+ at RN);
> SCREEN, 1
> 4 -------------------------------------
> If
> Then END
> 5 -------------------------------------
>
> Problem: Field 1 does not get populated immediately when an update
> screen is displayed ... it is blank then. But if I leave it blank and
> save, scanning the file shows it to be properly set. Why isn't it
> populated before the display? (I tried 'if 1 EQ ""' too, but to no
> avail.)
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list