Home Cart [Log In] About Us Contact Us

Object Reference

xf_ControlsControl Related

Public Sub FormControlsSaveValsToDictionary (
f As Form,
ByRef dict As xf_Dictionary,
Optional UseControlSourceName As Boolean = False

Write the values of all data controls on the form to a dictionary, indexed by the control name

f as Form

The target form.

ByRef dict as xf_Dictionary

The dictionary that values will be written to. Any existing values matching the control names will be overwritten. If the dictionary does not exist, a new one will be created.

Optional UseControlSourceName as Boolean = False

Use the ControlSource property rather than the control name as the dictionary key.

Call Template:

xf.Controls.FormControlsSaveValsToDictionary f, dict
xf.Controls.FormControlsSaveValsToDictionary f, dict, UseControlSourceName

See Also:

Example 1:

xf.Controls.SaveAllFormControlValsToDictionary Me, dict
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd