Author Topic: SQLite and Fields  (Read 3255 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
SQLite and Fields
« on: May 14, 2010, 02:02:04 AM »
Probably useless, but fun to write..

edit... implemented CAcFdUiFieldDialogHook and CAcFdUiFieldOptionDialog
« Last Edit: May 14, 2010, 07:55:14 AM by Daniel »
Retired

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: SQLite and Fields
« Reply #1 on: May 14, 2010, 07:55:52 AM »
For those who are interested, all I did was take the sample from ARXSDK\samples\misc\TextFileField and changed to evaluate SQL statements  instead of text files.
It's really easy to do, your mother will not mind at all if you do.  :-)
Retired

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: SQLite and Fields
« Reply #2 on: May 14, 2010, 11:27:41 AM »
Here is the source code and compiles for Acad 2010+ 32/64, note that this does not include the SQLite source. Also the field dialog hook will be included in another project, so if you want to play, just paste the field in the editor I.e

%<\SQLiteStmnt c:\\MyTest.db;SELECT * FROM FieldTest;>%

« Last Edit: May 14, 2010, 09:59:12 PM by Daniel »
Retired

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: SQLite and Fields
« Reply #3 on: May 14, 2010, 10:07:11 PM »
I stuck all the source for the Sqlite field evaluator and the dialog hooks in this
http://www.theswamp.org/index.php?topic=32990.msg384539#msg384539
Retired

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: SQLite and Fields
« Reply #4 on: May 14, 2010, 10:18:23 PM »

Thanks Daniel !!
Again :)
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7096
  • AKA Daniel
Re: SQLite and Fields
« Reply #5 on: May 14, 2010, 10:44:53 PM »
It's my pleasure, I don't know how useful it would be, it's more of a programming exercise.
Retired