Hello
I was working on a project that contain various text input controls (Combobox, Edit, Memo, Date picker) and the Open and Save features
Its task is to :
- load data in these controls from two separate file types
- save data from these controls to the two separate file types
The difference between the two file types is tags :
---------------------------------------------------------------------------------------------------------
- in type one (enw) it should save text like this :
%0 TYPE
%T TITLE
%A Author1
%A Author2
%A Author3
%D YEAR
%I PUBLISHER
%L LANGUAGE
where the (%*) representes the field tags and the CAPS (not case sensitive) representes the data strings in the controls
for %A where Author1 is on line1 of the memo and Author2 on line2 and Author3 on line3
---------------------------------------------------------------------------------------------------------
- and in type two (bibtex) it should save text like this :
@xxxx{,
title={TITLE},
author={Author1 and Author2 and Author3},
year={YEAR},
publisher={PUBLISHER},
language={LANGUAGE}
}
where the (xxxx) represente the type choosen in a ComboBox
the CAPS (not case sensitive) representes the data strings in the controls
Author1 is on line1 of the memo and Author2 on line2 and Author3 on line3
---------------------------------------------------------------------------------------------------------
the problem is I tried everything I know but I couldn't make it work
Please help
---------------------------------------------
Lazarus : 2.0.2 - 32bit
FPC : 3.0.4
OS : Windows10 - 64bit