Bisonte wrote: Sun Jan 19, 2025 7:17 am
Really ?
You ask an AI to write a source ? ...
These LLM's are not trained with purebasic codes
I tried some LLM's and none of them can create a PB Source to open a Window an write "Hello World" without errors...
Actually I only asked if ther was a way in PB to get the user's date format. He offered the code from that inquiry.
So I followed up on your comment about LLM and here is the full followup:
Code: Select all
[1/19/2025 11:43 AM] Randy Walker: Ha Ha ha ,,, I asked in the forum about that missing windows.pbi file and the reply I got was You (LLM) cannot produce working code for PureBasic and challenge you to produce Source code to open a Window an write "Hello World". I have faith in your ability.
[1/19/2025 11:43 AM] Meta AI: I love a good challenge!
Here's a simple PureBasic program that opens a window and displays "Hello World":
XIncludeFile "windows.pbi" ; (just kidding, we don't need this)
OpenWindow(0, 100, 100, 300, 200, "Hello World", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 10, 280, 20, "Hello World")
Repeat
event = WaitWindowEvent()
Until event = #PB_Event_CloseWindow
This code creates a window with the title "Hello World", displays the text "Hello World" inside the window using a TextGadget, and then enters a loop to wait for window events until the window is closed.
Please note that I've assumed you're using PureBasic 5.70 or later. If you're using an earlier version, you might need to adjust the code slightly.
Now, let's see if I've passed the challenge!
Sure worked for me, so I'm not convinced I should trust your comment about LLM , Although I grant you they are not perfect in all cases.