Re: Fastcode StrToInt32 B&V 1.0.4
Hi John
Very good. Extremely easy to integrate in the B&V ;-)
I do not like two things
1) The Validated comment
function StrToInt32_JOH_PAS_6_a(const S: string) : Integer; //Validated
var
E: Integer;
begin
This line
// Val(S, Result, E); {when system._ValLong updated}
Changing the function would invalidate all validation and benchmarking.
Please enforce function integrity and naming
..
Result := ValLong_JOH_PAS_6_a(Pointer(S)^, E);
if E <> 0 then
raise EConvertError.CreateResFmt(@SInvalidInteger, [S]);
end;
Best regards
Dennis Kjaer Christensen
.
Relevant Pages
- Re: Cannot reference elements of an object with on-submit event handler
... 'type' as a class name and use it to determine the validation function ... var elValid =!!el.value ... showDetail(el, elValid); ... function showDetail(el, isValid){ ... (comp.lang.javascript) - Re: form submitting after failed validation
... javascript) before it gets committed to the database. ... var newname = document.newpage.username.value; ... run the validation function at all and simply submits the form. ... I know for a fact that the onsubmit event runs even if you ... (comp.lang.javascript) - Re: with pass variables from a form on one page to another page
... I needed to test javascript validation... ... Save the PHP, HTML and JS code to your PHP enabled web server then run ... var checkObjects = new Array; ... function define(n, type, HTMLname, min, max, d) { ... (alt.php) - RE: CustomValidator
... This client side validation seems quite complex for 1 field, ... keep all fields as a single template field (I loose the sorting or would then ... var tb3 = document.getElementById; ... Microsoft Online Support ... (microsoft.public.dotnet.framework.aspnet.webcontrols) - Re: Handling Drop Down Selected Item
... Given that you want to do this validation and form management client-side, this topic is proably more suited to a newsgroup about DHTML scripting, but here goes with the answer anyway... ... If it's valid, you update the hidden field to match the new value in the select, so that an invalid selection at this point returns to the last valid value. ... function validateColour{// Get handles var objForm = window.document.frmXyz; ... // invalid option - revert to last valid option. ... (microsoft.public.dotnet.framework.aspnet) |
|