Ask a Question related to ASP Database, Design and Development.
-
Mark Greenway #1
using eval to update recordset
<%
Response.write(RS("txt_policyFee") & "<BR>")
eval(RS("mem_PolicyCode"))
Response.write(RS("mem_policyCode") & "<BR>")
RS.UpdateBatch
Response.write(RS("txt_policyFee") & "<BR>")
%>
Gives this output:
0
RS("txt_policyFee") = 35
0
What am I missing? is there a way to do this?
for clarification: My problem is that the second policy fee is 0 and not 35
Mark Greenway Guest
-
#5435 [Opn->Bgs]: Request to update eval() or create new function.
ID: 5435 Updated by: bjori@php.net Reported By: dahamsta at iewebs dot com -Status: Open +Status: Bogus Bug Type: ... -
Recordset Update Problems
This subroutine is for an error logger, and I'm trying to check if a similar error already exists, only update a few things (time, number of... -
Help with eval()
I have this line in my code: eval('$field->' . $val . '(' . $max . ',' . $errDisplayArray . ');'); where $field is a predefined class... -
RecordSet.Move or RecordSet.AbsolutePosition??
Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to... -
#5435 [Com]: Request to update eval() or create new function.
ID: 5435 Comment by: a at b dot c dot de Reported By: dahamsta at iewebs dot com Status: Open Bug Type: Feature/Change Request... -
Ray at #2
Re: using eval to update recordset
Why are you using eval?
Ray at work
"Mark Greenway" <NetAdmin@liginsurance.com> wrote in message
news:5ce5f8d1.0308081313.5db09eea@posting.google.c om...35> <%
> Response.write(RS("txt_policyFee") & "<BR>")
> eval(RS("mem_PolicyCode"))
> Response.write(RS("mem_policyCode") & "<BR>")
> RS.UpdateBatch
> Response.write(RS("txt_policyFee") & "<BR>")
> %>
>
> Gives this output:
>
> 0
> RS("txt_policyFee") = 35
> 0
>
> What am I missing? is there a way to do this?
> for clarification: My problem is that the second policy fee is 0 and not
Ray at Guest
-
Bob Barrows #3
Re: using eval to update recordset
Because he wants to execute code contained in the recordset field.
Ray at <%=sLocation%> wrote:> Why are you using eval?
>
> Ray at work
>
> "Mark Greenway" <NetAdmin@liginsurance.com> wrote in message
> news:5ce5f8d1.0308081313.5db09eea@posting.google.c om...>> <%
>> Response.write(RS("txt_policyFee") & "<BR>")
>> eval(RS("mem_PolicyCode"))
>> Response.write(RS("mem_policyCode") & "<BR>")
>> RS.UpdateBatch
>> Response.write(RS("txt_policyFee") & "<BR>")
>> %>
>>
>> Gives this output:
>>
>> 0
>> RS("txt_policyFee") = 35
>> 0
>>
>> What am I missing? is there a way to do this?
>> for clarification: My problem is that the second policy fee is 0 and
>> not 35
Bob Barrows Guest
-
Ray at #4
Re: using eval to update recordset
I see. Interesting.
Ray at work
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:ekY4gOfXDHA.1832@TK2MSFTNGP09.phx.gbl...> Because he wants to execute code contained in the recordset field.
>
> Ray at <%=sLocation%> wrote:>> > Why are you using eval?
> >
> > Ray at work
> >
> > "Mark Greenway" <NetAdmin@liginsurance.com> wrote in message
> > news:5ce5f8d1.0308081313.5db09eea@posting.google.c om...> >> <%
> >> Response.write(RS("txt_policyFee") & "<BR>")
> >> eval(RS("mem_PolicyCode"))
> >> Response.write(RS("mem_policyCode") & "<BR>")
> >> RS.UpdateBatch
> >> Response.write(RS("txt_policyFee") & "<BR>")
> >> %>
> >>
> >> Gives this output:
> >>
> >> 0
> >> RS("txt_policyFee") = 35
> >> 0
> >>
> >> What am I missing? is there a way to do this?
> >> for clarification: My problem is that the second policy fee is 0 and
> >> not 35
>
Ray at Guest
-
Chris Hohmann #5
Re: using eval to update recordset
"Mark Greenway" <NetAdmin@liginsurance.com> wrote in message
news:5ce5f8d1.0308081313.5db09eea@posting.google.c om...35> <%
> Response.write(RS("txt_policyFee") & "<BR>")
> eval(RS("mem_PolicyCode"))
> Response.write(RS("mem_policyCode") & "<BR>")
> RS.UpdateBatch
> Response.write(RS("txt_policyFee") & "<BR>")
> %>
>
> Gives this output:
>
> 0
> RS("txt_policyFee") = 35
> 0
>
> What am I missing? is there a way to do this?
> for clarification: My problem is that the second policy fee is 0 and not
You want execute, not eval
Chris Hohmann Guest



Reply With Quote

