The full code should be something like this :-
 
with rsRecordset
 
If strMode = "new" Then 
    .AddNew
    .Fields("ho")=(Request.Form("txtho"))
    .Fields("ten") = (Request.Form("txtten"))
    .Fields("ngaysinh") = (Request.Form("txtngaysinh"))
    .Fields("gioitinh") = (Request.Form("txtgioitinh"))
    .Fields("diachi") = (Request.Form("txtdiachi"))
    .Fields("ghichu")=(Request.Form("txtghichu"))
    .Fields("dienthoai") = (Request.Form("txtdienthoai"))
    .Fields("quequan")=(Request.Form("txtquequan"))
    .Fields("email") = (Request.Form("txtemail"))
    .Update
end if

end with

Using a "with block" allows you to omit the object's name. So without
the with block above you'd have to put rsRecordset.AddNew,
rsRecordset.Fields("ho") etc etc

Dan

________________________________

From: maiphuong1412 [mailto:[EMAIL PROTECTED] 
Sent: 05 April 2005 17:04
To: [email protected]
Subject: [AspClassicAnyQuestionIsOk] What does the point mean?



I have some ASP code:

If strMode = "new" Then .AddNew
            .Fields("ho")=(Request.Form("txtho"))
            .Fields("ten") = (Request.Form("txtten"))
            .Fields("ngaysinh") = (Request.Form("txtngaysinh"))
            .Fields("gioitinh") = (Request.Form("txtgioitinh"))
            .Fields("diachi") = (Request.Form("txtdiachi"))
            .Fields("ghichu")=(Request.Form("txtghichu"))
            .Fields("dienthoai") = (Request.Form("txtdienthoai"))
            .Fields("quequan")=(Request.Form("txtquequan"))
            .Fields("email") = (Request.Form("txtemail"))
            .Update

I don't know what does the point mean?.AddNew and .Fields .Update






________________________________

Yahoo! Groups Links


*       To visit your group on the web, go to:
        http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
          
*       To unsubscribe from this group, send an email to:
        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
subscribe> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to