Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mixing javascript and VFP
Message
From
15/12/2018 20:04:09
 
 
To
14/12/2018 20:32:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Miscellaneous
Thread ID:
01664202
Message ID:
01664518
Views:
48
This is what I needed to do to make this work. Thanks for your help that guided me in the right direction.

cMessage = "Test réussi!"
cConv1 = STRCONV( cMessage, 1, 1036)
cConv2 = STRCONV( cConv1, 9, 1036)

So I had to convert my message to UTF-8


>Hi Dennis,
>
>Using this https://www.utf8-chartable.de/unicode-utf8-table.pl plus strconv() might get you where you need to go.
>
>Hank
>
>>Hello Hank,
>>
>>Sorry for the long delay for this reply.
>>
>>Javascript because I've been dealing with a very weird problem that I have. I want to send SMS from my VFP app. For that I'm using the TwilioX tool.
>>
>>The problem is that I can't send characters with accents (éÉêÊèÈ...)
>>
>>The author told me that there's nothing in his code that explains this behavior.
>>
>>So here comes Javascript in action I hope. I'd like to send an SMS from my VFP app but by calling javascript code for that sending just to see what will happen with the characters with accents. I want to use Javascript because Twilio gives the javascript code that is needed to send SMSs.
>>
>>>>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.
>>>
>>>Hi Dennis,
>>>
>>>curious: why javascript?
>>>
>>>Hank
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Reply
Map
View

Click here to load this message in the networking platform