type conversion problem
- From: Martin S <shieldfire@xxxxxxxxx>
- Date: Mon, 30 Jan 2006 07:40:54 +0100
I get type mismatch errors (untyped - string) on the following
If FileExists('fontman.rc') Then
//Read config file
begin
AssignFile(ConfigFile,'fontman.rc');
Reset(ConfigFile);
While not EOF(ConfigFile) do
begin
Lookingfor:= ReadLn(ConfigFile, Configtext);
Lookingfor:= AnsiRightStr(Lookingfor, MyFonts=);
Lookingfor := Trim(Lookingfor);
// Do something with result e.g.
ShowMessage(Lookingfor);
end;
end
Else
How can I solve the problem of getting the right type?
I've looked for something to convert the output but failed so far.
Martin S
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- Follow-Ups:
- Re: type conversion problem
- From: Bruce Roberts
- Re: type conversion problem
- From: J French
- Re: type conversion problem
- From: alanglloyd@xxxxxxx
- Re: type conversion problem
- Prev by Date: Re: Keeping invisible forms from showing at start-up
- Next by Date: Re: type conversion problem
- Previous by thread: Keeping invisible forms from showing at start-up
- Next by thread: Re: type conversion problem
- Index(es):