Lately I was writing a bit of code to do some job for my work. Importing a clipboarded Excel column into an array, it came in as one large string.
Lazy as I am I thought to make ChatGPT do the dirty work
but as usual, it made a mess of the program.
It seems that ChatGPT doesn't know too much about QB64PE (just as Copilot as mentioned in another post), so in the end I gave up with it and provided the link of the wiki. Which it immediately started scanning, so who knows, next time ....
As usual it was using non-existing commands. But this time, it was a very interesting command:
_REPLACE$(source$,old$,new$)
Where in a source$, every occurrance of old$ was replaced with new$.
For a single replace, you could code this with a few commands, With multiple occurences, the code gets somewhat more complex, so here lies the real strength. Then I thought how nice it would be to have a fast, internal command. There are many occasons where this is useful, like replacing the comma's for dots in a large number. Now, I have a multi-line function for that.
Now I don't know if this is the right section of the forum, but I did not see a better place for the suggestion. If there is, please move it there!
Lazy as I am I thought to make ChatGPT do the dirty work
but as usual, it made a mess of the program.It seems that ChatGPT doesn't know too much about QB64PE (just as Copilot as mentioned in another post), so in the end I gave up with it and provided the link of the wiki. Which it immediately started scanning, so who knows, next time ....
As usual it was using non-existing commands. But this time, it was a very interesting command:
_REPLACE$(source$,old$,new$)
Where in a source$, every occurrance of old$ was replaced with new$.
For a single replace, you could code this with a few commands, With multiple occurences, the code gets somewhat more complex, so here lies the real strength. Then I thought how nice it would be to have a fast, internal command. There are many occasons where this is useful, like replacing the comma's for dots in a large number. Now, I have a multi-line function for that.
Now I don't know if this is the right section of the forum, but I did not see a better place for the suggestion. If there is, please move it there!

