1
I’m looking for something like this:
I have a string like this:
texto
texto
texto
texto
type, with spaces before the text, and I need to take this space, and save in a variable, this using Delphi 7. Except that the text is not always text, it can be 123
, might be another word, but I need to save the size of the space, 'cause I’m gonna need it later.
Any suggestions? I tried pos/copy
, but without success.
Thank you. I’ll try my job tomorrow, and I’ll get back to you. From what I read, the Stringofchar function is used to take small pieces of a string and convert it into char, something like that. Detail that these spaces are tabs, so they can have 1, 2 or more tabs, regardless of that, I have to know how many are, because I will need to concatenate this with another string later.
– Éder Pereira
ramaral, I did it here and it worked. Instead of using Stringofchar, I used the Dupestring function, it was good. But I used spaces, instead of tab, because it was getting too out of identation. Ah, I forgot to mention, this is for an sql code finder that we are doing to embed within our ERP. Thank you very much for your attention :)
– Éder Pereira