Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ManniB

    Sending bulk email messages from VFP 6.0 and VFP 9

    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...
  2. ManniB

    REPORT FORM ... TO PRINTER

    I see, so you took care of the focus yourself. But most importantly you found a solution to your problem with that extra form :)
  3. ManniB

    REPORT FORM ... TO PRINTER

    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.
  4. ManniB

    REPORT FORM ... TO PRINTER

    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...
  5. ManniB

    Random numbers appearing on the screen of the form

    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...
  6. ManniB

    Random numbers appearing on the screen of the form

    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
  7. ManniB

    Use GPT-4 for translating text

    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
  8. ManniB

    Use GPT-4 for translating text

    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:"...
  9. ManniB

    OpenAI Speech-To-Text

    Hi Vernpace, thank you, so I need another account then... Regards, Manni
  10. ManniB

    OpenAI Speech-To-Text

    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
  11. ManniB

    OpenAI Speech-To-Text

    Gerrit, do you have a Plus Subscription? It's not working on my end.
  12. ManniB

    OpenAI Speech-To-Text

    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...
  13. ManniB

    OpenAI Speech-To-Text

    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
  14. ManniB

    OpenAI Speech-To-Text

    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 =...
  15. ManniB

    OpenAI Speech-To-Text

    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...
  16. ManniB

    COM backgroundprocess challenge

    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
  17. ManniB

    APPEND FROM problem

    Chriss, I think SCATTER/GATHER works differently: CREATE CURSOR crsTest1 (name1 c(20), name2 C(20), name3 C(20)) INSERT INTO crsTest1 (name1, name2, name3) VALUES ("1", "2", "3") CREATE CURSOR crsTest2 (name4 c(20), name5 C(20), name6 C(20)) SELECT crsTest1 SCATTER TO temp MEMO SELECT...
  18. ManniB

    APPEND FROM problem

    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
  19. ManniB

    How to change font type on a report when a particular condition applies

    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...
  20. ManniB

    How to change font type on a report when a particular condition applies

    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...

Part and Inventory Search

Back
Top