MVROD Posted January 20, 2009 Posted January 20, 2009 (edited) Hi ! Does anybody knows how getting a substring providing the start and finish position ? Like string.substring(0,10) in JAVA? I'm not searching for a specific string, I just would like to know the string which is between some positions. Example: String word = "Hello Earth" word.substring(7,9) = Ear Can anybody help me how to do this ? Edited January 20, 2009 by MVROD
KaFu Posted January 20, 2009 Posted January 20, 2009 (edited) Use StringMid ( "string", start [, count] ). Edited January 20, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
MVROD Posted January 20, 2009 Author Posted January 20, 2009 Use StringMid ( "string", start [, count] ). Thanks a lot! It worked successfully !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now