Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best tool for developing data driven web sites
Message
 
To
14/08/2002 15:57:57
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00689449
Message ID:
00689723
Views:
27
Yes, there's a pretty simple routine that just evaluates everything between
<%= %>
and
<% %>
(which would evaluate using ExecScript (if vfp 7)). This basically uses all the nice VFP string functions like EVAL, STRTRAN, FILETOSTR, ATC, STUFFC, etc. HTML tables are a little different - there's a routine that evaluates each HTML table according to the name you pass the routine. Here's an example that was created in FrontPage(customers is the HTML table):
Simple List    
<customers> 
Company Contact Title
<%=tCursor.company%> <%=tCursor.Contact%> <%= tCursor.Title %> 
</customers> 
<%= IIF(RECCOUNT() > 10,[<< <<pages>> >>],[]) %>
Total Customers=<%=reccount()%> 
You can see this fully evaluated at http://www.activevfp.com/AVFPdemo15/AVFPdemo15.asp?action=simplelist
>Claude:
>
>>the VFP mtdll approach allows you to use Dreamweaver, FrontPage or any other HTML editor to generate HTML templates that are populated with VFP expressions and/or VFP scripts(using the native VFP ExecScript) that are evaluated at run-time.
>
>Could you expand on this a little? If you put a VFP expression in an HTML template, this would be between ASP style tags? So, are you saying that you could put something like
>
>
>14/08/2002
>
>
>in a template and ASP will evaluate it? How so? What mechanism is used to interpret the code in the tags as VFP code? Or, is the evaluation of the template page done in the VFP MTDLL and returned using the ASP objects?
>
>Could you post/e-mail me a code example, and maybe one using VFP7 execscript() to show how you would typically utilise this approach. You have got me interested on this one <s>. I more or less assumed Jscript/VBscript was the limit here (from a classic ASP perspective).
>
>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform