Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to find string is a negative value string +vb.net

Hi,
I have a string with
-64.71
Need to check whether string is negative.

Cheers
ASKER CERTIFIED SOLUTION
Avatar of cy_hung
cy_hung
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Éric Moreau
if yourStringVariable.IndexOf("-")>=0 then
  'it contains a -
end if
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial