View Single Post
  #1084  
Old 11-10-2021, 01:01
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Is it there any easy solution to have multiple data files for single selected component? I'm currently making a collection, with one of the selective titles having to have certain files packed separately. I know I could just instruct the user to select 2 items, but for the sake of it looking better I was wondering if a neater solution would be possible.

I tried modifying
Code:
if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.File', '', IniFile)) = '' then
&
Code:
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
to
Code:
if Trim(GetIniString('ComponentsSettings', 'Component' + IntToStr(I) + '.FileA' or '.FileB', '', IniFile)) = '' then
&
Code:
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileA', '', ExpandConstant('{tmp}\Settings.ini')));
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.FileB', '', ExpandConstant('{tmp}\Settings.ini')));
when they appeared (twice for each) within the script, however this sadly didn't work out, with other attempts either not functioning when testing with a set of example archives, or an error was met on compiling the script. Does anyone familiar with Pascal have any idea if this type of modification is possible? I'm assuming such a solution isn't feasible, as the script wasn't designed to have multiple entries for a single component part.
Reply With Quote