Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
eval
- Page 1
Eval
Programming
Web Development
12 Years Ago
by davy_yg
… Width="16px" ImageUrl = '<%# "~/Image_Produk/" &
Eval
("FileGambar") %>' /> </td> <td…ID="KodeBarang" runat="server" Text='<%#
Eval
("KodeBarang") %>'></asp:Label> <…
eval function
Programming
Software Development
17 Years Ago
by olams
… void add(LList); void sub(LList); double
eval
(double); void set(int, int); private: void…;next; ptrL1 = ptrL1->next; } } double LList::
eval
(double x){ double sum = 0; Lnode *temp = head…;; a.printP(); cout<<endl; a.
eval
(2.0); a.printP(); LList b(3);…
Re: eval function
Programming
Software Development
17 Years Ago
by Lerner
… in main() when you call
eval
() using polynomial a like this: a.
eval
(2.0); you are ignoring the… return value of
eval
(). To see what the return value is …the screen directly like this: cout << a.
eval
(2.0) << '\n'; or you …then print it like this: double d = a.
eval
(2.0); cout << d <<…
Re: eval function
Programming
Software Development
17 Years Ago
by olams
… in main() when you call
eval
() using polynomial a like this: a.
eval
(2.0); you are ignoring the… return value of
eval
(). To see what the return value is …the screen directly like this: cout << a.
eval
(2.0) << '\n'; or you …and then print it like this: double d = a.
eval
(2.0); cout << d <<…
eval() problems
Programming
Software Development
16 Years Ago
by shadwickman
…how to get around a problem I was having with
eval
(). I have a list of strings and each one… import these modules to use in the current script, but:
eval
( "import" + modname ), where 'modname' is the …;, "secondary", "tertiary" ] for item in names:
eval
( "import " + item ) [/CODE] The code above makes…
Eval not displaying anything
Programming
Web Development
13 Years Ago
by InS@NiTy
…id="InfoAvailableDesc" runat="server" Text='<%#
Eval
("InfoAvailable") %>' /></td>` and…id="litInfoAvailable" runat="server" text='<%#
Eval
("InfoAvailable") %>'/> </asp:label>…
Re: eval() problems
Programming
Software Development
16 Years Ago
by vegaseat
Try ... [code=python]names = [ "main", "secondary", "tertiary" ] for item in names: cmd = "__import __(%s)" % item
eval
( cmd ) [/code]
Re: eval() problems
Programming
Software Development
16 Years Ago
by slate
Besides, that you do not have a "primary" module in the code...
Eval
evaluates an expression in his own namespace and returns the result. What you really want imho is to inject code. Something like this: [code=python] for item in names: exec "import " + item [/code]
Eval() Method - Help please
Programming
Web Development
15 Years Ago
by ashkan3030
…; runat="server" ImageUrl='~\\Images\\thumbnail\\<%#
Eval
("brand")%>\\<%#
Eval
("thumbnail")%>' />[/code] I…
Eval() Method
Programming
Web Development
15 Years Ago
by ashkan3030
…; runat="server" ImageUrl='~\\Images\\thumbnail\\<%#
Eval
("brand")%>\\<%#
Eval
("thumbnail")%>' />[/code] I…
Re: Eval() Method
Programming
Web Development
15 Years Ago
by kvprajapati
Use
Eval
format option. [CODE=ASP.NET] ... ImageUrl='<%#
Eval
("T1","~\\imgs\\{0}") %>' .. [/CODE]
Re: Eval() Method
Programming
Web Development
15 Years Ago
by dnanetwork
my friend single / will do your job correctly... ImageUrl='~\Images\thumbnail\<%#
Eval
("brand")%>\<%#
Eval
("thumbnail")%>' Enjoy...mark the post resolved if it helps..
Re: Eval() Method
Programming
Web Development
15 Years Ago
by ryuslash
I think I would try [icode]<asp:Image ID="Image2" runat="server" ImageUrl='~\\Images\\thumbnail\\<%#
Eval
("brand") + "\\" +
Eval
("thumbnail")%>' />[/icode], or something in that nature...
Re: Eval() Method
Programming
Web Development
15 Years Ago
by ashkan3030
No that's not working,but I found the working code : <%# String.Format("~\\Images\\thumbnail\\{0}\\{1}",
Eval
("brand"),
Eval
("thumbnail")) %> Anyway thank you all for help.
eval() - the best way?
Programming
Software Development
15 Years Ago
by ultimatebuster
…(): return "Awesome" cmd = raw_input("Your command: ")
eval
(cmd + "()") [/CODE] I know that you can't… use
eval
to assign a value to a variable. but is it…
<% # Eval("Item)%> syntax error
Programming
Web Development
14 Years Ago
by G_Waddell
…; </HeaderTemplate> <ItemTemplate> <td><%#
Eval
("Item1")%></td> </ItemTemplate>…'m getting the syntax error at the following: [ICODE] <%#
Eval
("Item1")%> [/ICODE] The Error I get is…
Re: Eval() Method
Programming
Web Development
15 Years Ago
by ashkan3030
That's right but you suppose you have two parameter e.g T1 and T2. Then can I use it like this ? : <%#
Eval
("T1","T2","~\\Images\\{0}\\{1}")%>
Re: <% # Eval("Item)%> syntax error
Programming
Web Development
14 Years Ago
by khadakbist
Can you try [CODE]<%# DataBinder.
Eval
(Container.DataItem, "Id") %>[/CODE]
Re: Using eval() to return value of a variable.
Programming
Web Development
14 Years Ago
by urtrivedi
… to execute dynamic statement. like
eval
("\$var=7;");. It is not a fuction so … shown below. [code] <?php $var1 = 'lol'; $var2 = 'var1'; //$var3 =
eval
("\$var2;"); $var3 = $$var2; print $var3; ?> [/code]
Re: Eval
Programming
Web Development
12 Years Ago
by BMXDad
Line 31 should be at line 74 You closed the repeater, before adding the content.
Re: Eval
Programming
Web Development
12 Years Ago
by JorgeM
Those header, item and footer templates should be within the repeater control as ggamble mentioned. If you are using VS on the design page, as you work with the controls, they will be created correctly. Are you manually typing this out on the source view?
Re: Eval
Programming
Web Development
12 Years Ago
by BMXDad
Your also using 'NamaBarang' twice as an ID. ID parameters need to be unique.
"use" statement inside an eval: problem?
Programming
Software Development
18 Years Ago
by Mushy-pea
… a "use" statement inside an
eval
that is compiled separately to the enclosing program …(i.e.
eval
EXPR, not
eval
BLOCK). The reason I want to do…at runtime and passing the code to an
eval
EXPR. This works with one of them …possible to use "use" inside an
eval
like this, or will I have to include…
Calling functions with eval()
Programming
Software Development
14 Years Ago
by iamdabobo
…I've ready plenty about calling functions and such with
eval
. Basically my question is, how do I call a …function with
eval
() and pass it variable parameters? Code snippets follow. [CODE… equation = entry.get() #raw input from entry box answer =
eval
(equation, evalvars) [/CODE] When I run this with raw input…
Re: Safety of eval function
Programming
Software Development
19 Years Ago
by vegaseat
… only one letter away from evil()! My feelings, if
eval
() is directly connected to a user input, avoid it!!! This …() function that uses raw_input() and then sends the string to
eval
() to extract the number. In this case you can't… or 'system' before sending it to the
eval
() function. A safe use of
eval
() would be in a GUI calculator, where the…
Problem of Using Eval
Programming
Software Development
15 Years Ago
by hkfwy
…() funName = input('please input the function name: ') result =
eval
(funName, globalDict) print("The result is: ", result)…quot;, line 16, in <module> result =
eval
(funName, globalDict) File "<string>", …, it will also work. To my understanding,
eval
will find the name appearing in the expression in…
An extremely safe eval
Programming
Software Development
18 Years Ago
by MattEvans
… input or otherwise, and return the result?
eval
($expr) is dangerous because
eval
(open $out, "> file.what"…;); will open the file, infact,
eval
(everything) will pretty much do everything. checking though everything is… out is which opcodes to allow for a reasonable
eval
and nothing dangerous. Well, here they are to …
weirdness with eval
Programming
Software Development
15 Years Ago
by amadain
…tmpBPSS.split('_')[3].split('#')[1]" if
eval
(filterParam): print "Evalled" else: print….recipientIMSI)[/code] I am not getting anything to '
eval
'. Here are the results: [code] Not Evalled…>>> recipientIMSI='892000000' >>> if
eval
(filterParam): ... print "Evalled" ... else: ... …
Re: Calling functions with eval()
Programming
Software Development
14 Years Ago
by Gribouillis
…ll try to compile(integ(log(...))) and then
eval
() it. Unless I'm missing something obvious,…): namespace = EVAL_NAMESPACE code = compile(expression, 'expression', '
eval
') args = [] for name in (n for n in…)) func = """ def function(%s): return
eval
(code, namespace, locals()) """ % ("…
Re: Calling functions with eval()
Programming
Software Development
14 Years Ago
by iamdabobo
…expression): namespace = EVAL_NAMESPACE code = compile(expression, 'expression', '
eval
') args = [] for name in (n for n in…)) func = """ def function(%s): return
eval
(code, namespace, locals()) """ % (",… with a combination of compile, exec, and
eval
, but this is really helpful. I'll…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC