need guidance in inserting field ( coding question )

Discussion in 'C#' started by gilgalbiblewheel, Apr 9, 2005.

  1. #1
    All I want to insert is the "new_gemetria" field. Is it necessary to enter all the "p_"s as shown below. Since all the rest of the fields are already inserted.
    
        if linkSet.EOF then
            p_new_id = 1
        else
            p_new_id = linkSet("new_id") + 1
        end if
    
        p_new_id_in = Request.querystring("p_new_id")
        if p_new_id_in <> "" then
            linkSet.Find "new_id = " & p_new_id_in
        end if
        if p_new_id_in = "" or linkSet.EOF then
            p_new_recordType = ""
            p_new_book_spoke = ""
            p_new_chapter_spoke = ""
            p_new_verse_spoke = ""
            p_new_book = ""
            p_new_chapter = ""
            p_new_verse = ""
            p_new_text_data = ""
            p_new_gemetria = ""
    
        else
            p_new_id = p_new_id_in
            p_new_recordType = linkSet("new_recordType")
            p_new_book_spoke = linkSet("new_book_spoke")
            p_new_chapter_spoke = linkSet("new_chapter_spoke")
            p_new_verse_spoke = linkSet("new_verse_spoke")
            p_new_book = linkSet("new_book")
            p_new_chapter = linkSet("new_chapter")
            p_new_verse = linkSet("new_verse")
            p_new_text_data = linkSet("new_text_data")
            p_new_gemetria = linkSet("new_gemetria")
            p_existing = p_new_id_in
        end if
    
    
    Code (markup):

     
    gilgalbiblewheel, Apr 9, 2005 IP
  2. gilgalbiblewheel

    gilgalbiblewheel Well-Known Member

    Messages:
    435
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #2
    I thought of another method because this seems too complicated. How about including a textarea wherein is the calculation inserted automatically next to each record (therefore a textarea next to each record) and a submit button on top of the "textarea column".

    I tried this but it has some problems:
    since the page holds 10 records at a time what it's doing is taking the result from the 10 records and updating in one record (is one square called parameter?). So 10 in 1.

    Here's the link:
    http://k.domaindlx.com/gemetria/pageing2.asp
     
    gilgalbiblewheel, Apr 19, 2005 IP
  3. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I don't think there are many VB coders here, which would explain the lack of response.
     
    nullbit, Apr 19, 2005 IP