Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Interdev DTC
Message
 
À
20/12/2000 01:19:24
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00455352
Message ID:
00455413
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform