Jump to content

Recommended Posts

Posted

hello my friends.

I write an Autoit script for my project .

now I have a string in my project and need too check the string length . and if string length is larger than 100 characters, get just 100 characters from 1 too 100 .

can anyone help me ?

for example :

check $data length

$length = $data length

if $length > 100 -then-> $data = first 100 characters of $data

Posted

thanks a lot .

now I get the $data length

$Ln = StringLen ( $Data ) 
    if $Ln > 100 Then
    $Data = ...
    EndIf

I need to set $data = first 100 characters of $data if Ln > 100 characters .

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...