Author Topic: Are there any examples of fpjsondataset out there?  (Read 3625 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Are there any examples of fpjsondataset out there?
« on: August 04, 2014, 02:48:06 pm »

I am looking at fpjsondataset and want to see how a new dataset is created, fields added to it, and saved. I am guessing the saving part will be some kind of stream.

Are there some examples I may have missed?
Lazarus 3.0/FPC 3.2.2

JanRoza

  • Hero Member
  • *****
  • Posts: 755
    • http://www.silentwings.nl
Re: Are there any examples of fpjsondataset out there?
« Reply #1 on: August 05, 2014, 01:08:42 am »
Have you looked at the examples that come with the sources?
They reside in the examples folder which is a subfolder of ...\lazarus\fpc\2.6.4\source\packages\fcl-json. (in this case it's for fpc 2.6.4.)
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Re: Are there any examples of fpjsondataset out there?
« Reply #2 on: August 05, 2014, 03:35:46 pm »
Have you looked at the examples that come with the sources?
They reside in the examples folder which is a subfolder of ...\lazarus\fpc\2.6.4\source\packages\fcl-json. (in this case it's for fpc 2.6.4.)

I think you are referring to TJSONData whose name can be confused with Dataset.

fpdataset.pp is in ../fcl-db/src/json/ but there is no example included
Lazarus 3.0/FPC 3.2.2

JanRoza

  • Hero Member
  • *****
  • Posts: 755
    • http://www.silentwings.nl
Re: Are there any examples of fpjsondataset out there?
« Reply #3 on: August 06, 2014, 01:29:28 pm »
 :-[
You're right, I mistook this one for jsondataset.
Apologies!
OS: Windows 11 / Linux Mint 22.3
       Lazarus 4.6 RC FPC 3.2.2
       CodeTyphon 8.90 FPC 3.3.1

 

TinyPortal © 2005-2018