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
Recent
Star Wars Galaxian
by
PierceNg
[
Today
at 10:10:44 am]
Unleashed Pascal (async/a...
by
Fibonacci
[
Today
at 08:27:13 am]
QGradientTrackPanel: A Fu...
by
Boleeman
[
Today
at 07:13:07 am]
[closed] Is case for stri...
by
egsuh
[
Today
at 06:39:17 am]
New charts
by
Boleeman
[
Today
at 04:26:40 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 01:28:23 am]
How to define the SQLite3...
by
jamie
[
Today
at 01:26:49 am]
kOmniXML for Lazarus and ...
by
PeterEvans
[
Today
at 01:11:14 am]
Finding List of Fonts & P...
by
J-G
[August 09, 2026, 11:05:31 pm]
[Scrubbed] Question about...
by
jamie
[August 09, 2026, 08:47:34 pm]
Bug: XLSX writer does not...
by
wp
[August 09, 2026, 08:29:22 pm]
New Big Integer library i...
by
ad1mt
[August 09, 2026, 05:32:14 pm]
Automatic generation of *...
by
PeterBB
[August 09, 2026, 01:38:51 pm]
TyControls: a custom-draw...
by
Antek
[August 09, 2026, 12:07:39 pm]
PO-Editor MyLangEdit3 now...
by
dbannon
[August 09, 2026, 07:55:47 am]
Application triggers mess...
by
JanRoza
[August 09, 2026, 12:26:52 am]
[solved] form reset/reloa...
by
ADMGNS
[August 08, 2026, 09:58:42 pm]
Create small language
by
ADMGNS
[August 08, 2026, 09:52:19 pm]
Advatage Database server
by
neobrasil08
[August 08, 2026, 08:42:18 pm]
How get listy of FieldDat...
by
Aruna
[August 08, 2026, 04:02:16 pm]
Identify network devices
by
LemonParty
[August 08, 2026, 03:44:03 pm]
how to connect to mariadb...
by
Mike.Cornflake
[August 08, 2026, 12:25:31 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: ansirightstr (Read 6299 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: 606
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: 79
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