Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-11

Un/De-Format function still exists?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

Hi,

Result of Format('abc: %d def: %d',[1,2]) is 'abc: 1 def: 20'. It's ok , but I want to do this thing from the other direction. I want to know the integers only and the strings ('abc') not the same in every line in a text file.
Is a function/procedure still exists in FPC or Lazarus for this problem. If anybody understood me. ;-)

Gabor

JoshyFun
to Gabor Boros

Hello Gabor,

Tuesday, November 25, 2008, 1:13:09 PM, you wrote:

GB> Result of Format('abc: %d def: %d',[1,2]) is 'abc: 1 def: 20'. GB> It's ok , but I want to do this thing from the other direction. GB> I want to know the integers only and the strings ('abc') not the same in GB> every line in a text file.
GB> Is a function/procedure still exists in FPC or Lazarus for this problem. GB> If anybody understood me. ;-)

Look for "SScanf" function, maybe it will fit your needs.

Best regards, JoshyFun