Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

create directory for each item in a combobox

ok here how it goes

 i have a combobox and i want to create a sperate directory for each item in that combobox

lets say the items were 1,2,3,4,5

the dircecorys should be c:\1,c:\2.....c:\5

icreatedirectory('C:\1',nil); is not a soulotion
0
amjedmsa
Asked:
amjedmsa
1 Solution
 
kretzschmarCommented:
maybe this way ?

..
for i := 0 to combobox1.items.count - 1 do
  CreateDirectory(PChar('c:\'+combobox1.items[i]),nil);
..

meikl ;-)
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now