Jump to content


Photo

TNXEncoding - what is it?


  • Please log in to reply
2 replies to this topic

#1 TrevorRoberts

TrevorRoberts
  • Members
  • 14 posts

Posted 08 May 2022 - 11:35 AM

Hi,

 

I am trying to use TNxCSVDocument6 to create a CSV database for my app, but I can't find an explanation/definition for TNXEncoding anywhere, including the online reference. Since TNXEncoding is a required parameter alongside the filename to load etc, I am stuck.

 

CSVDataBase.LoadFromCSV('C:\Projects\database.csv',?);

 

I would appreciate any help with this. Thank you!



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 09 May 2022 - 01:40 PM

Hi,

 

Sorry for my delay,

 

This type can be found in NxTypes6 unit and as can be seen it simply specifies how your file will gonna be saved (encoding that will be used):

 

  TNxEncoding = (ekAnsi, ekUnicode, ekUnicodeBigEndian);

 

I hope that this helps. In most cases you will use first 2 only.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 TrevorRoberts

TrevorRoberts
  • Members
  • 14 posts

Posted 09 May 2022 - 02:59 PM

Perfect! Thank you very much.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users