Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best tool for developing data driven web sites
Message
 
À
14/08/2002 15:57:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00689449
Message ID:
00689723
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform