Recent

Author Topic: 2 problems im having  (Read 3550 times)

captian jaster

  • Guest
2 problems im having
« on: May 24, 2010, 12:13:33 pm »
Sup guys...
Ive been working on a program and im having to problems.
The first one is How do i add a TScrollBar into a TMemo?

My Second one is: You Know TFileList. im working with one and im trying to get the program to do something similar to depending on the Type on the file(eg .txt .jpg) it opens a different program to open the Files.
But
Code: [Select]
IF(FileList.FileName = 'Test.txt')Then//Rest of the code
I know Test.txt doesnt only count has the Type but its just a test to show my problem.
The Error is basically FileName isnt a boolean expression. So id doesnt work with ifs(or While Do) so thnx in advance

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1891
Re: 2 problems im having
« Reply #1 on: May 24, 2010, 01:10:06 pm »
A: Read the properties of your Memo. It already has a Scrollbars property.

B: Not sure if I understand. My answer is "ExtractFileExt(..)".

 

TinyPortal © 2005-2018