Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mixing javascript and VFP
Message
De
06/12/2018 10:58:21
 
 
À
06/12/2018 10:28:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Divers
Thread ID:
01664202
Message ID:
01664204
Vues:
87
>Is it possible to mix javascript code and VFP code.
>
>For example, I want to execute a loop in javascript. Within that loop I want to add a record in a VFP table. So later I'll be able to know what operations were successfull and which operatione were unsuccessfull.

Create a VFP app that exposes functions in a COM-based DLL, and then call those functions from javascript.

In IE:
var obj = new ActiveXObject("myDll.testMethod");
var vResult = obj.TestMethod();
alert(vResult);
Some other references:
https://stackoverflow.com/questions/1550112/how-to-call-user32-dll-methods-from-javascript
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform