Recent

Author Topic: Not visible soAllDirectories from System.IOUtils  (Read 257 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Not visible soAllDirectories from System.IOUtils
« on: November 13, 2025, 04:33:37 pm »
I connected System.IOUtils and tried to use soAllDirectories from type TSearchOption. I got:
Quote
Error: Identifier not found "soAllDirectories"
This is strage, because when I click on soAllDirectories - IDE sees where it is implemented.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12593
  • FPC developer.
Re: Not visible soAllDirectories from System.IOUtils
« Reply #1 on: November 13, 2025, 05:27:33 pm »
That sourcecode has {$SCOPEDENUMS ON} which means you need to prefix enum.enumvalue

So   try TSearchOption.soAlldirectories

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Re: Not visible soAllDirectories from System.IOUtils
« Reply #2 on: November 13, 2025, 05:44:26 pm »
It works. Thank you.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

 

TinyPortal © 2005-2018