Hello I have a settings table.
I would like to write a function which would cycle through all records ticked as enabled and create TempVars for each record.
My table is called SETTINGS
The name of the TempVar I would like to set is contained in the field named: Set_TempVars_Name
The Value that I want to set for this TempVars is in the field named: Set_Value
The name of the field to enable or disable whether a Tempvars is created is in field called: Set_Enabled
For example the first record would contain the following data:
Filed Name: Value:
Set_TempVars_Name TVars_Company_Name
Set_Value ABC Limited
Set_Enabled Yes
I would like the function to create a TempVars called TVars_Company_Name, with the value ABC Limited and cycle through all records which are marked Yes in the Set_enabled field.
Thank you for any help. Mark
I would like to write a function which would cycle through all records ticked as enabled and create TempVars for each record.
My table is called SETTINGS
The name of the TempVar I would like to set is contained in the field named: Set_TempVars_Name
The Value that I want to set for this TempVars is in the field named: Set_Value
The name of the field to enable or disable whether a Tempvars is created is in field called: Set_Enabled
For example the first record would contain the following data:
Filed Name: Value:
Set_TempVars_Name TVars_Company_Name
Set_Value ABC Limited
Set_Enabled Yes
I would like the function to create a TempVars called TVars_Company_Name, with the value ABC Limited and cycle through all records which are marked Yes in the Set_enabled field.
Thank you for any help. Mark