>Larry, thanks for your very helpful reply.
>
>The reason I was moving it 'out' of the form, was to look forward a bit and to take account of a future scenario where I may be doing some validation on a back-end web server... I do not want to have to replicate/redesign all the validations
>
>..just pass in the values.
>I dont think this will be prcatical because a 'LOT' of detail on the form may have to be passed... I will end up with a lot of Parameters.. or is there another way of passing parameters.
>
>Regards,
>
>Gerard
If you need to pass a large number of parameters then I suggest you use a parameter object. Create a generic object from scratch using Createobject("custom"). Use AddProperty to create as many properties as required. Pass that object to your validation routine.
Ex.
oparam = createobject('custom')
With oparam
.AddProperty('MyProp1',somevalue)
.AddProperty('MyProp2',somevalue)
.AddProperty('MyProp3',somevalue)
.AddProperty('MyProp4',somevalue)
Endwith
If your validation is only needed on values contained in a table, you could use the SCATTER NAME oparam and that will create an object with properties that match the field names of the table being scattered.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao