I recommend Chilkat ActiveX for sending emails, it's very reliable and has also several options for gmail's REST API etc. You need a commercial license, but Chilkat comes with a ton of other useful stuff (FTP, encryption, REST client etc.) and is way worth it. Plus you don't need Outlook or any...
EinTerraner, I don't think that's true. If you click on a command button it gets focus (you see a gray frame on the button), but if you click on an image afterwards, the frame on the command button remains. So a click on an image does not automatically change the focus.
Chriss, does this mean thath everytime you execute a REPORT FORM... you have to make sure that a grid doesn't have focus? Most of the time a Command Button "Print" will have the focus that you clicked before printing, but when images as fake buttons are used (like EinTerraner mentioned) or...
Mike, you are right, NOCONSOLE was missing therefore Thisform.AllowOutput = .F. was the solution, so the output was not displayed on the form.
I read somewhere else that SET TALK OFF has a bug and Thisform.AllowOutput = .F. was suggested as a solution. I can't find the thread, unforunately...
Also
Thisform.AllowOutput = .F.
can be important when you print reports, because SET TALK OFF sometimes doesn't work because of an error in VFP.
Regards,
Manni
Hi vernpace,
thank you for your explanation. I didn't know the API has different functions for translation.
Regarding UTF-8, isn't it possible to use VPF's StrConv() function like
cUtf8Content = FILETOSTR("hindi.txt")
cDbcsContent = STRCONV(cUtf8Content, 11)
?
Regards,
Manni
I've experiences that ChatGTP sometimes translates more "freely" than other engines so if you want an exact translation, I suppose you have to be clear about this in the prompt to avoid problems.
You can compare results from a prompt like
"Translate the following French text into English:"...
Hi Gerrit,
I have a Plus Subscription. When I'm logged in to ChatGTP, under My Plan it says:
ChatGPT Plus Subscription
Access to GPT-4, our most capable model
Browse, create, and use GPTs
Access to additional tools like DALL·E, Browsing, Advanced Data Analysis and more
Regards,
Manni
Vernpace, thank you for sharing your code!
When I tried it with a newly created API key, I get error 429 (Rate limit reached for requests). I have a plus subscription and it's the first time I'm trying this. The mp3 file is only 500kb large. Why is it not working?
What I meant regarding...
I'm glad that it worked!
It's fascinating what OpenAI can do, I'm looking forward to more applications in the future. Unfortunately, data security/privacy is still an issue...
Out of interest: How fast can it convert an mp3 of one minute?
Regards,
Manni
Here is an example for an upload with VFP from Marco Plaza using CreateBinary() first and then sending the binary data as request body:
https://www.tek-tips.com/viewthread.cfm?qid=1791567
So in your code instead of
loHTTP.Send(tcRequest)
you can try
LOCAL qRequest
qRequest =...
Maybe it's because of the file content, you were just using FileToStr() but maybe in the request it needs to binary, base64 or something else.
I would try it with Chilkat using this example to post multipart/form-data to see if it works...
Gerrit, have you considered using chilkat for REST requests? Mabye VFP doesn't freeze when you use chilkat instead of MSXML2.ServerXMLHTTP.
For example, see: https://www.example-code.com/foxpro/rest_simple_get.asp
Regards,
Manni
The same mistake has happened to me as before. I forgot about it because with SCATTER TO and GATHER FROM, it's only about the sequence, while with APPEND FROM, the field names have to match.
Manni
Steve, after adding a dynamic property, make sure, that "Print when" is empty, in case you have experimented with this option before. Also double check in the menu of the dynamic property if the condition you entered in "Apply when this condition is true" is really true before you report the...
Yes, the way Antonio describes it is the same way I do it when I only need to change the font size or color dynamically. Notice that you can also make the font bold by changing the font itself (there is no checkbox for the "bold propterty" like on a form).
When changes need to be more...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.