Search found 122 matches
- Thu Sep 06, 2018 8:46 pm
- Forum: Coding Questions
- Topic: Problem converting SQLite to MySQL
- Replies: 11
- Views: 2181
Re: Problem converting SQLite to MySQL
If you have access to the MySQL server, you should use LOAD DATA INFILE and a CSV file, it is considerably faster than successive INSERTs. (in SQLite .import)
With 10,000 records it should take a few seconds.
Thanks for the reply. I am not sable to go down the LOAD DATA route as the CSV I am ...
- Thu Sep 06, 2018 1:36 pm
- Forum: Coding Questions
- Topic: Problem converting SQLite to MySQL
- Replies: 11
- Views: 2181
Re: Problem converting SQLite to MySQL
Here is some code I have knocked up to try and understand who it all would work. It all about the code between the -------------------------------
The MySQL Database is on my local machine, there is an 64bit ODBC connection linked to MySQL
MySQL_Username.s = "root"
MySQL_Password.s ...
The MySQL Database is on my local machine, there is an 64bit ODBC connection linked to MySQL
MySQL_Username.s = "root"
MySQL_Password.s ...
- Thu Sep 06, 2018 12:20 pm
- Forum: Coding Questions
- Topic: Problem converting SQLite to MySQL
- Replies: 11
- Views: 2181
Re: Problem converting SQLite to MySQL
Thanks for the replies, I got it working great a few days ago but then came across another few issues and been stuck even though I have tried quite a few permutations on writing the code.
When using SQLite there was no limitation on the size of the query string, however on MySQL (via ODBC) there is ...
When using SQLite there was no limitation on the size of the query string, however on MySQL (via ODBC) there is ...
- Fri Aug 31, 2018 10:24 am
- Forum: Coding Questions
- Topic: Problem converting SQLite to MySQL
- Replies: 11
- Views: 2181
Re: Problem converting SQLite to MySQL
Not an answer, but are you sure about "BEGIN:" :?:
I use "BEGIN;".
Yes, I did mean ; I mistyped whilst writing this post. The actual code does have a ;
As for infratec reply, I have tried various BEGIN; or BEGIN TRANSACTION; or START TRANSACTION; but still can not get a multi INSERT to actually ...
I use "BEGIN;".
Yes, I did mean ; I mistyped whilst writing this post. The actual code does have a ;
As for infratec reply, I have tried various BEGIN; or BEGIN TRANSACTION; or START TRANSACTION; but still can not get a multi INSERT to actually ...
- Thu Aug 30, 2018 9:47 pm
- Forum: Coding Questions
- Topic: Problem converting SQLite to MySQL
- Replies: 11
- Views: 2181
Problem converting SQLite to MySQL
Hi,
For a few years I have been importing database records into SQLite using the following code.
Query$ = "BEGIN: " + #CRLF$
Query$ = Query$ + "INSERT INTO `mytable` (`ID`, `Date_TS`, `HTeam`, `ATeam`, `FTG`, `FTA`, `FT`) VALUES (0, 1533340799, 'Jordan', 'Jack', 0, 0, 'Z');" + #CRLF$
Query ...
For a few years I have been importing database records into SQLite using the following code.
Query$ = "BEGIN: " + #CRLF$
Query$ = Query$ + "INSERT INTO `mytable` (`ID`, `Date_TS`, `HTeam`, `ATeam`, `FTG`, `FTA`, `FT`) VALUES (0, 1533340799, 'Jordan', 'Jack', 0, 0, 'Z');" + #CRLF$
Query ...
- Fri Mar 16, 2018 4:24 pm
- Forum: Coding Questions
- Topic: How to get mouse coords across the whole monitor setup
- Replies: 2
- Views: 1068
Re: How to get mouse coords across the whole monitor setup
Thanks, I have spent ages trying all the mouse stuff and never knew this Desktop Enviroment. Thankskenmo wrote:Code: Select all
DesktopMouseX() DesktopMouseY()
- Fri Mar 16, 2018 3:19 pm
- Forum: Coding Questions
- Topic: How to get mouse coords across the whole monitor setup
- Replies: 2
- Views: 1068
How to get mouse coords across the whole monitor setup
Hi, How to get mouse coords across the whole monitor setup without having an open window or screen?? It just does not seem possible to use the mouse functions without enabling sprites or opened windows.
Example of what I have been trying to achieve.
A PB application to reside in the Taskbar. This ...
Example of what I have been trying to achieve.
A PB application to reside in the Taskbar. This ...
- Tue Feb 06, 2018 3:02 pm
- Forum: Coding Questions
- Topic: Storing many types of Variables
- Replies: 2
- Views: 1129
Re: Storing many types of Variables
Thanks
sorry for my bad coding
sorry for my bad coding

- Tue Feb 06, 2018 1:22 pm
- Forum: Coding Questions
- Topic: Storing many types of Variables
- Replies: 2
- Views: 1129
Storing many types of Variables
Hi All,
How to store variables of different types in one way.
OK, I have lots of individual variables in my software
aa=1
ab=2
ac="Tree"
ad=4
ae="Roots"
af=12212.2
etc etc
but now looking to handle these variables in a better way. I first looked at an Array but you can not store different ...
How to store variables of different types in one way.
OK, I have lots of individual variables in my software
aa=1
ab=2
ac="Tree"
ad=4
ae="Roots"
af=12212.2
etc etc
but now looking to handle these variables in a better way. I first looked at an Array but you can not store different ...
- Tue Feb 06, 2018 12:11 pm
- Forum: Coding Questions
- Topic: EditorGadget and Wordwrap and stuff
- Replies: 2
- Views: 1134
Re: EditorGadget and Wordwrap and stuff
Thank you so much
- Mon Feb 05, 2018 11:11 am
- Forum: Coding Questions
- Topic: EditorGadget and Wordwrap and stuff
- Replies: 2
- Views: 1134
EditorGadget and Wordwrap and stuff
Hi,
I am looking to add an editorgadget to a window to act as a location for notes, however I can not seem to get the text to correct along with the wordwrap. Is there a special way to solve this?
The attached code is taken from the EditorGadget help file with the addition of some long sentences ...
I am looking to add an editorgadget to a window to act as a location for notes, however I can not seem to get the text to correct along with the wordwrap. Is there a special way to solve this?
The attached code is taken from the EditorGadget help file with the addition of some long sentences ...
- Fri Feb 02, 2018 10:54 am
- Forum: Coding Questions
- Topic: Variable Checking
- Replies: 7
- Views: 2495
Re: Variable Checking
Thanks for the pointers. :-)
Here is the code with the unicode alteration for anyone else who might like to check for variables and unused declared variables.
EnableExplicit
#maxVars = 1000
#var_use_noUse = %00000000000000
#var_use_anyUse = %00000000000001
#var_use_argument = %00000000000010 ...
Here is the code with the unicode alteration for anyone else who might like to check for variables and unused declared variables.
EnableExplicit
#maxVars = 1000
#var_use_noUse = %00000000000000
#var_use_anyUse = %00000000000001
#var_use_argument = %00000000000010 ...
- Wed Jan 31, 2018 11:30 pm
- Forum: Coding Questions
- Topic: Variable Checking
- Replies: 7
- Views: 2495
Re: Variable Checking
if anyone who has a old copy of PB hanging around that is installed on their system, could you compile
You can download old PureBasic copies from your online account at PureBasic.com :)
I know, I just did not want to try install a few old copies in seperate area and mess with cfg files just to ...
You can download old PureBasic copies from your online account at PureBasic.com :)
I know, I just did not want to try install a few old copies in seperate area and mess with cfg files just to ...
- Wed Jan 31, 2018 9:39 pm
- Forum: Coding Questions
- Topic: Sorry, my mind has gone blank
- Replies: 4
- Views: 1268
Re: Sorry, my mind has gone blank
Thank you all for your help 

- Wed Jan 31, 2018 9:38 pm
- Forum: Coding Questions
- Topic: PanelGadget Tab Focus Event
- Replies: 2
- Views: 1194
Re: PanelGadget Tab Focus Event
Thank you for your help 
