Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q48

irt.org | About | Feedback | 2547 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q48

Sent by
billemery on March 27, 2001 at 16:23:43:

Length:
Too short

Comments:
this is an example of how to
do what the question asks.
first the form variables are convertd to numbers ie
var QDT = DAILYFORM.QTYDAILYTICKETS.value - 0;
then the calc is done and the result is loaded back into a form
text field by using + ''.


function calcdepqty()
{
var result = 0;
var QDT = 0;
var QN = 0;
var VBQ = 0;
var V = 0;
var WEQ = 0;
var QDT = DAILYFORM.QTYDAILYTICKETS.value - 0;
var WEQ = DAILYFORM.WEQTY.value - 0;
var QN = DAILYFORM.QTYNIGHT.value - 0;
var VBQ = DAILYFORM.VALIDBILLQTY.value - 0;
var V = DAILYFORM.VOID.value - 0;
result = QDT + WEQ + QN + VBQ + V;
DAILYFORM.DEPOSITQTY.value = result + '';
}
</SCRIPT>


Other feedback on 'irt.org FAQ Knowledge Base Q48' - show all


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.