Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Problems with StrToDWord
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
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Initiaiizing records by c...
by
Thaddy
[
Today
at 05:41:49 am]
Hypocycloid Program (incl...
by
speter
[
Today
at 05:33:19 am]
Fairtris 2: The Ultimate ...
by
kevin498
[
Today
at 05:09:44 am]
Here's some Pong game. Su...
by
Seenkao
[
Today
at 04:28:13 am]
Designer
by
SandyG
[
Today
at 03:20:24 am]
A question on Modula2 vs ...
by
speter
[
Today
at 03:09:19 am]
Best way to exchange data...
by
cdbc
[
Today
at 03:00:24 am]
lamw
by
desconocido
[
Today
at 12:58:09 am]
scanline example
by
speter
[
Today
at 12:12:12 am]
android
by
desconocido
[
Today
at 12:03:24 am]
Pack
by
domasz
[March 18, 2024, 10:24:35 pm]
IsManagedType problem, do...
by
PascalDragon
[March 18, 2024, 10:05:44 pm]
Conflict when static link...
by
tetrastes
[March 18, 2024, 10:05:28 pm]
Indeed TCustomApplication...
by
PascalDragon
[March 18, 2024, 10:00:49 pm]
"fpc.cfg is missing" (not...
by
AxBen
[March 18, 2024, 09:50:52 pm]
Interesting discovery wit...
by
wp
[March 18, 2024, 09:11:23 pm]
Use Lazarus 3.2 with FPC ...
by
AxBen
[March 18, 2024, 08:56:42 pm]
More Normal Mode for Laza...
by
RayoGlauco
[March 18, 2024, 08:55:53 pm]
How to make a watermarked...
by
loaded
[March 18, 2024, 08:37:24 pm]
Introducing a "using" key...
by
VisualLab
[March 18, 2024, 08:26:22 pm]
Code completion items
by
Martin_fr
[March 18, 2024, 08:26:17 pm]
Poll: Watches and Display...
by
Martin_fr
[March 18, 2024, 07:36:59 pm]
[Solved] Help with sql
by
Zvoni
[March 18, 2024, 05:46:32 pm]
TBGRABitmap.TextSize retu...
by
circular
[March 18, 2024, 04:40:11 pm]
Еличка - a simple calcula...
by
gidesa
[March 18, 2024, 04:16:43 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Problems with StrToDWord (Read 2185 times)
simsee
Full Member
Posts: 183
Problems with StrToDWord
«
on:
March 30, 2017, 01:17:46 pm »
I apologize for the trivial question... I have some problems with StrToDWord function...
To show the issue I simplify my context with the following toy program:
Code: Pascal
[Select]
[+]
[-]
program
Project1
;
uses
SysUtils
;
var
aDWordStr
:
string
;
begin
aDWordStr
:
=
'10000'
;
Writeln
(
StrToInt
(
aDWordStr
)
)
;
Writeln
(
StrToDWord
(
aDWordStr
)
)
;
end
.
Compiler return "project1.lpr(8,11) Error: Identifier not found "StrToDWord"...
Why?
Logged
Zoran
Hero Member
Posts: 1824
Re: Problems with StrToDWord
«
Reply #1 on:
March 30, 2017, 01:52:13 pm »
You do not have Sysutils in uses section?
According to documentation it is in Sysutils:
http://www.freepascal.org/docs-html/current/rtl/sysutils/strtodword.html
Logged
wp
Hero Member
Posts: 11830
Re: Problems with StrToDWord
«
Reply #2 on:
March 30, 2017, 02:01:19 pm »
No, it is there. Maybe fpc.cfg is broken?
Logged
marcov
Administrator
Hero Member
Posts: 11351
FPC developer.
Re: Problems with StrToDWord
«
Reply #3 on:
March 30, 2017, 02:08:24 pm »
Works for me 3.0.2 and 3.1.1 on Windows, so a bit more information would be informative.
Still with sysutils being in the RTL and the error indicating it got past the uses clause, this is weird.
Logged
simsee
Full Member
Posts: 183
Re: Problems with StrToDWord
«
Reply #4 on:
March 30, 2017, 02:56:48 pm »
I compiled the code in my laptop and the problem don't arise... Thus my installation on workstation is corrupted... I did not imagine that, since I compiled many complex sources without problems in the last days... Sorry for the time I made you lose... Thanks!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
Problems with StrToDWord
TinyPortal
© 2005-2018