Home > Archive > Getting Started with dBASE > August 2005 > Using current fields in PRG Procedure files dBASE 2.5









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 Using current fields in PRG Procedure files dBASE 2.5
Norman Snowden

2005-08-22, 8:23 pm

I need to use lots of current fields in a PRG file. The changed fields are satisfactorily saved and updated on the WFM Form. However the fields in the SET PROCEDURE TO PRG file do not update unless I close the WFM file and reload the WFM file.

The only way I have found to immediately update the PRG fields is to Declare a PUBLIC memory variable for the necessary fields in the WFM file and assign the current WFM field value to the corresponding memory variable for use in the PRG file. I guess it
would also work to Declare a Public Array to include the WFM fields and transfer them to the PRG file from the Array.

There must be an easier way to immediately update fields in PRG files.

Sorry for my frequent questions but I would appreciate any comments in this regard.

Thanks, Norman
Dan Bernard

2005-08-22, 8:23 pm

Norman,

Have you tried; form.rowset.refresh()

Dan

"Norman Snowden" <duluth@msn.com> wrote in message
news:UeREf00pFHA.1420@news-server...
>I need to use lots of current fields in a PRG file. The changed fields are
>satisfactorily saved and updated on the WFM Form. However the fields in the
>SET PROCEDURE TO PRG file do not update unless I close the WFM file and
>reload the WFM file.
>
> The only way I have found to immediately update the PRG fields is to
> Declare a PUBLIC memory variable for the necessary fields in the WFM file
> and assign the current WFM field value to the corresponding memory
> variable for use in the PRG file. I guess it would also work to Declare a
> Public Array to include the WFM fields and transfer them to the PRG file
> from the Array.
>
> There must be an easier way to immediately update fields in PRG files.
>
> Sorry for my frequent questions but I would appreciate any comments in
> this regard.
>
> Thanks, Norman



Norman Snowden

2005-08-22, 8:23 pm

Thanks Dan,

I tried form.rowset.refresh()


Dan Bernard Wrote:

> Norman,
>
> Have you tried; form.rowset.refresh()
>
> Dan
>
> "Norman Snowden" <duluth@msn.com> wrote in message
> news:UeREf00pFHA.1420@news-server...
>
>


Norman Snowden

2005-08-22, 8:23 pm

Norman Snowden Wrote:

Dan, ( I accidently posted an incomplete message. Complete message follows:)

I tried form.rowset.refresh() in the WFM form just before branching to the PRG file. It did not update the field in the PRG file and the form.rowset.refresh() code if placed directly in the RG file causes an error message.

Thanks for your interest and comment.

Norman
>
>
> Dan Bernard Wrote:
>
>


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