Sign in to follow this  
Followers 0
yucatan

string numeric

5 posts in this topic

hello guys i have a question how should i check if the first char in my string is a numeric?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If StringIsInt(StringLeft("Your String",1)) Then
    MsgBox(0,"","Numeric!")
Else
    MsgBox(0,"","Not Numeric!")
EndIf

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

If StringIsInt(StringLeft("Your String",1)) Then
    MsgBox(0,"","Numeric!")
Else
    MsgBox(0,"","Not Numeric!")
EndIf

hello guys i have a string and the string is this " 5275648 63% 4.97MB/s 0:00:00"

i have a loop running providing me alot of that strings

what i want to do is if the string is " 5275648 63% 4.97MB/s 0:00:00"

i wanne change it in this"5275648 63% 4.97MB/s 0:00:00"

so i wanne remove all the spacebars at the left of the string

can somebody help me on this

thx

Share this post


Link to post
Share on other sites

hello guys i have a string and the string is this " 5275648 63% 4.97MB/s 0:00:00"

i have a loop running providing me alot of that strings

what i want to do is if the string is " 5275648 63% 4.97MB/s 0:00:00"

i wanne change it in this"5275648 63% 4.97MB/s 0:00:00"

so i wanne remove all the spacebars at the left of the string

can somebody help me on this

thx

StringStripWS

(Click for docs)

Share this post


Link to post
Share on other sites

thanks u very much manadar

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0