Re: Assign the editor properties dynamical from database

  •  06-01-2007, 10:03 AM

    Re: Assign the editor properties dynamical from database

    I'm not sure why this question is being asked of Adam. It is more of an ASP question than a CE question.

    Here is a sample from my code library:

    Sub LoadTheVariables(sql)
          Dim field, RS
          Set RS = objConn.Execute(sql)
          For Each field In RS.Fields
                EXECUTE(field.Name & "=RS(""" & field.Name & """)")
          Next
          RS.Close
          Set RS = Nothing
    End Sub

    So, where i is a counter, you could:

    EXECUTE("Editor" & i & "." & rs("property") & " = " & rs("property_value"))




View Complete Thread