Forum Discussion

joffre's avatar
joffre
Regular Contributor
12 years ago

Doubt about working with ADO Recordset

Is this the best way to do what I'm trying to do?



I'm doing as the example explains. Populate the RecordSet, and then doing like this:



txtCodigo = Sys.Browser().Page("*").Panel("tabs").TextBox("TxtCodigo");

txtCodigo.SetText(rs.Fields("CODIGO").Value);




Is there a better approach?
  • joffre's avatar
    joffre
    Regular Contributor


    Hello Tanya. Thanks for your answer.



    And if I need to pick an specific item from the database table? I'll have to create a new SQLCommand each time I need that?