| Author |
Immediate assignment of entryfield value to Form
|
|
| Noman Snowden 2005-07-12, 8:23 pm |
| // test is a calculated variable
this.form.subject1.rowset.fields["theirage"].value = test
// The assignment produces the correct entryfield value. However, I want the result to appear immediately on the form screen rather than have to change the rowset on the form to make it appear.
// Using:
this.form.subject1.rowset.fields["theirage"].value .SAVE()
// Causes the message Error: variable undefined: SAVE
// Thanks for any suggestion! Norman
| |
| Rick Miller 2005-07-13, 3:23 am |
| Hello Noman,
Noman Snowden <Duluth@msn.com> wrote in
news:7rMnjb0hFHA.1188@news-server:
> // test is a calculated variable
> this.form.subject1.rowset.fields["theirage"].value = test
----
rather than assign the variable to the rowset,
You can assign it to the entryfield and (presto).
for example:
form.entryfield1.value : = test
Hope it helps,
Rick Miller
| |
| Rick Miller 2005-07-13, 3:23 am |
| Rick Miller <nospam@nospam.com> wrote in news:Xns9691D69879A1
Drmadv@
64.132.211.168:
there is a mistake with:
> form.entryfield1.value : = test
remove the space between ": ="
it was not supposed to be there.
form.entryfield1.value := test
Rick Miller
| |
| Roland Wingerter 2005-07-13, 3:23 am |
| Noman Snowden wrote:
> // test is a calculated variable
> this.form.subject1.rowset.fields["theirage"].value = test
>
> // The assignment produces the correct entryfield value. However, I
> want the result to appear immediately on the form screen rather than
> have to change the rowset on the form to make it appear.
> // Using:
> this.form.subject1.rowset.fields["theirage"].value .SAVE()
> // Causes the message Error: variable undefined: SAVE
-------
I addition to Rick's answer...
Save() is a method of the rowset. So you would have to use
this.form.subject1.rowset.SAVE()
To make the new value appear without a save() you can use
this.form.subject1.refreshControls()
Roland
////////////////////////////////////////////////////////////////////////////
dBKON 2005 - 4. deutschsprachige dBASE Entwickler-
und Anwenderkonferenz am 11. und 12. November 2005
Neueste Infos unter: www.dbase-konferenz.de
| |
| Roland Wingerter 2005-07-13, 3:23 am |
| Roland Wingerter wrote:
>
> To make the new value appear without a save() you can use
> this.form.subject1.refreshControls()
-----
this.form.subject1.ROWSET.refreshControls()
| |
| Norman Snowden 2005-07-13, 9:23 am |
| Noman Snowden Wrote:
Thanks Rick and Roland:
Your solutions worked like a charm! I have written several personal programs for myself and friends using Dbase 5.7. I bought Dbase Plus last winter but have not used it until now because Dbase 5.7 has worked so well for me. Recently though, I tried
to load a deployed program on my sisters xp operating system and it would not load. The message in effect was: ....32 bit file cannot load 16 bit program . As a result, I have decided to rewrite the progrms in the object oriented 32 bit Dbase Plus. I hop
e the learning effort will not be too difficult.
Thanks again,
Norman
| |
| Roland Wingerter 2005-07-13, 11:23 am |
| Norman Snowden wrote:
>
> Thanks Rick and Roland:
> Your solutions worked like a charm!
------
Glad to help.
> I have written several
> personal programs for myself and friends using Dbase 5.7. I bought
> Dbase Plus last winter but have not used it until now because Dbase
> 5.7 has worked so well for me. Recently though, I tried to load a
> deployed program on my sisters xp operating system and it would not
> load. The message in effect was: ....32 bit file cannot load 16 bit
> program .
------
I have no idea why you get this error message. Apps written in VdB 5.x
should run on XP.
> As a result, I have decided to rewrite the progrms in the
> object oriented 32 bit Dbase Plus. I hope the learning effort will
> not be too difficult.
------
There is a lot to learn, but it is well worth it. Good luck!
Roland
|
|
|
|