Previous, next process code

xiaoxiao2021-03-06  38

REM == Previous == Rem ========================================== ======================= = parameter description: Rem = PID Current ID, PRAME: Column (such as general web_news table, usually Wn_ **, PRAME represents WN) REM = PTABLE (in front of the table. If the table name is: Site name _ table name (Shenzhe_News) PTable: represents shenzhe) Rem = Description: Adopting the above naming method, allowing the process to reach the process GM REM ================================================ =============== Function getPRE (PID, PRAME, PTABLE) ID = PRAME & "_ ID" Title = Prame & "_ Title" Table = "City _" & PTABLERL = "SHOW _" & PTABLESQL = "SELECT TOP 1 "& ID &" & Title & "From" & Table & "WHERE" & "&" "& Id &" DESC "set = conn.execute (sql) if =" on " One: No news "else pre =" "end ifgetpre = prend functionRem = Next rad ============= = parameter letter is like REM ========== Function GetNext (NRAME, NTABLE) ID = Nrame & "_ID" Title =


New Post(0)