Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Interdev DTC
Message
 
To
20/12/2000 01:19:24
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00455352
Message ID:
00455413
Views:
24
Good Morning Nicholas ;

We all have our own approach to what ever we do - programming is no different. I do not use DTC's, rather I write the code necessary to create an object. To provide formating I use a procedure such as this example in VB Script (use whatever scripting language you like).
Also, I set the maxlength to the field length in case the field size changes (Impossible!). Tags, etc. indicated below are not correct due to formating requirements of the UT.


< INPUT id="txtQuantity" TYPE="TEXT" Name="txtQuantity"
style="FONT-SIZE: 9pt;
HEIGHT: 20px;
LEFT: 575px;
POSITION:absolute;
TOP: 260px;
WIDTH: 60px"
Value="< %=trim(oReworkRS("Quantity"))% >"
ReadOnly
maxlength="< %=oReworkRS("Quantity").definedsize%>" >

Using ADO,

sub txtQuantity_Onblur()
if len(frmReworkDetail.txtQuantity.value) > 0 then
if not IsNumeric(frmReworkDetail.txtQuantity.value) then
alert ("Not a valid number")
frmReworkDetail.txtQuantity.focus
end if
end if
end sub

Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform