Subject |
Re: " ? " function not working |
From |
Ken Mayer <dbase@nospam.goldenstag.net> |
Date |
Sat, 19 Aug 2017 21:16:55 -0700 |
Newsgroups |
dbase.getting-started |
On 8/19/2017 12:40 PM, Bob McKinney wrote:
> Hi A: Have been trying to add/edit my code at my shop using db2.8 - w/7 on a peer to peer network.
> I wrote the following code on my computer at home (not on a network) and it worked fine, both the " ? " function (displaying in the view section of the command window) and the code itself.
> On the shop computer, the " ? " would not display and I could not get the code itself to work. Trying to run the edited code screwed up the network by changing the code at the beginning ( set procedure to Invoicedatamodulel.dmd to invoicekdatamodule.dmo ). As a result, the computer could not find a table.
>
> [begin code sample]
> function EQUANTITY_onLostFocus
> local rs, mPrc,mQty,mNPrc,mFrt
> rs = form.InvoiceDataModule1.Lineitem1.rowset
> mQty = 0
> mPrc = 0
> mNPrc = 0
> mFrt = 0
> mPrc := rs.fields["price"].value
> mQty := rs.fields["Quantity"].value
> ? mPrc " Price " //Would not load or display
There should be a plus symbol concatenating the value of the memory
variable, and the string in quotes. If the price or quantity values are
null, then you would get a null string ...
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm dBASE
Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
|
|