•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Pascal and Delphi section within the Software Development category of DaniWeb, a massive community of 391,775 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,437 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Pascal and Delphi advertiser:
Views: 5505 | Replies: 1
![]() |
•
•
Join Date: Jan 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Alrighty, I have two questions to ask:
1. Is there a length function in Dev Pascal ? If so, what is it? If not, is there a way to achieve the length of a string?
2. Can you change a string into an integer and/or vice versa. (example: entering '123' as a string and turning it into the number 123.)
Any assistance would be greatly appreciated. Thank you in advance.
Cheers,
Shane
1. Is there a length function in Dev Pascal ? If so, what is it? If not, is there a way to achieve the length of a string?
2. Can you change a string into an integer and/or vice versa. (example: entering '123' as a string and turning it into the number 123.)
Any assistance would be greatly appreciated. Thank you in advance.
Cheers,
Shane
•
•
Join Date: Jan 2005
Posts: 31
Reputation:
Rep Power: 4
Solved Threads: 0
1. Is there a length function in Dev Pascal ? If so, what is it? If not, is there a way to achieve the length of a string?
Dev Pascal uses either the Free Pascal compiler or the GNU Pascal compiler.
Online documentation for FPC System unit:
length: Length returns the length of the string S , which is limited to 255 for shortstrings. If the strings S is empty, 0 is returned. Note: The length of the string S is stored in S[0] for shortstrings only. The Length fuction should always be used on ansistrings and widestrings.
2. Can you change a string into an integer and/or vice versa. (example: entering '123' as a string and turning it into the number 123.)
StrToInt( S : String ): StrToInt will convert the string S to an integer. If the string contains invalid characters or has an invalid format, then an EConvertError is raised.
Dev Pascal uses either the Free Pascal compiler or the GNU Pascal compiler.
Online documentation for FPC System unit:
length: Length returns the length of the string S , which is limited to 255 for shortstrings. If the strings S is empty, 0 is returned. Note: The length of the string S is stored in S[0] for shortstrings only. The Length fuction should always be used on ansistrings and widestrings.
2. Can you change a string into an integer and/or vice versa. (example: entering '123' as a string and turning it into the number 123.)
StrToInt( S : String ): StrToInt will convert the string S to an integer. If the string contains invalid characters or has an invalid format, then an EConvertError is raised.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Pascal and Delphi Marketplace
Similar Threads
- Could somebody tell me more dev-pascal code? (Pascal and Delphi)
- Can dev-pascal use graphics, sound, and mouseclicks (Pascal and Delphi)
- Making a very useful unit for Dev-Pascal 1.9.2 (Pascal and Delphi)
- Can I stop the execution of the program in Dev Pascal for a certain amount of time? (Pascal and Delphi)
- Trying to find a better way to generate random numbers in Dev Pascal (Pascal and Delphi)
- Dev Pascal string help. (Pascal and Delphi)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Gliven, I need an idea for a program... help anyone?
- Next Thread: Pascal starter.


Linear Mode