Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
ansirightstr
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Banned or not banned?
by
tetrastes
[
Today
at 06:44:51 pm]
multiple Symbols
by
paule32
[
Today
at 06:33:05 pm]
tmemo won't take keyboard...
by
Aruna
[
Today
at 06:05:28 pm]
How to catch error 400 ?
by
rvk
[
Today
at 06:00:05 pm]
Possible Bug or Known Beh...
by
Aruna
[
Today
at 05:19:48 pm]
Recover deleted files usi...
by
Ericktux
[
Today
at 04:36:46 pm]
Wiki access blocked
by
Aistis
[
Today
at 03:53:31 pm]
Does anyone have experien...
by
gues1
[
Today
at 03:50:58 pm]
Debugger regression in La...
by
Martin_fr
[
Today
at 02:59:48 pm]
Multi Filter Module for D...
by
CharlyTango
[
Today
at 02:50:18 pm]
RuntimeError 103 File not...
by
Thaddy
[
Today
at 12:58:47 pm]
"Mario & Luigi" (1994-200...
by
paule32
[
Today
at 12:28:26 pm]
tSQLQuery.UpdateSQL with ...
by
dseligo
[
Today
at 12:13:24 pm]
Not happy with TTimeEdit
by
n7800
[
Today
at 03:09:32 am]
How can I uninstall the p...
by
xiyi0616
[
Today
at 02:35:48 am]
fpc in [home] folder not ...
by
Gustavo 'Gus' Carreno
[
Today
at 01:23:59 am]
Problems with libraries f...
by
regs
[July 17, 2025, 11:43:14 pm]
Platforms to sell Pascal ...
by
paule32
[July 17, 2025, 10:31:43 pm]
Lazarus Release 4.0
by
Nicole
[July 17, 2025, 10:26:25 pm]
A small inconsistency
by
gues1
[July 17, 2025, 09:59:06 pm]
QT5 OpenGLContext
by
aydın
[July 17, 2025, 09:21:27 pm]
TAChart how to make diffe...
by
tk
[July 17, 2025, 09:04:10 pm]
[SOLVED] Why does $fpctar...
by
PascalDragon
[July 17, 2025, 08:56:23 pm]
Suddenly a build error? [...
by
TBMan
[July 17, 2025, 07:26:44 pm]
Why is lazReport.Pages[0...
by
PEC120769
[July 17, 2025, 07:03:46 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: ansirightstr (Read 6135 times)
asdf
Sr. Member
Posts: 310
ansirightstr
«
on:
November 11, 2010, 06:53:59 pm »
in Delphi I saw ..
bb:= 'ABCDEFG';
aa:=ansirightstr(bb,4);
The result of aa is DEFG.
What is used in LZR to substitute 'ansirightstr'?
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
typo
Hero Member
Posts: 3051
Re: ansirightstr
«
Reply #1 on:
November 11, 2010, 06:56:46 pm »
bb:= 'ABCDEFG';
aa:=Copy(bb, Length(bb) - 4 + 1, Length(bb));
«
Last Edit: November 11, 2010, 07:06:20 pm by typo
»
Logged
LazarusBrasil.Org
mas steindorff
Hero Member
Posts: 556
Re: ansirightstr
«
Reply #2 on:
November 11, 2010, 07:22:33 pm »
or aa := RightStr(bb,4);
Logged
windows 10 &11, Ubuntu 21+ IDE 3.4 general releases
asdf
Sr. Member
Posts: 310
Re: ansirightstr
«
Reply #3 on:
November 12, 2010, 01:55:40 am »
OMG!
Where is it in reference of our website ?
Thank you
Logged
Lazarus 1.2.4 / Win 32 / THAILAND
AmatCoder
Jr. Member
Posts: 67
Re: ansirightstr
«
Reply #4 on:
November 12, 2010, 07:53:19 am »
AnsiRightStr exists in FreePascal:
http://www.freepascal.org/docs-html/rtl/strutils/ansirightstr.html
You need StrUtils in your uses clause.
You can use RightStr too:
http://www.freepascal.org/docs-html/rtl/strutils/rightstr.html
The difference is that RightStr can be used with WideStrings too.
«
Last Edit: November 12, 2010, 08:02:50 am by AmatCoder
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
ansirightstr
TinyPortal
© 2005-2018