OpenBve.Interface.TryParseFloatVb6 C# (CSharp) Method

TryParseFloatVb6() static private method

static private TryParseFloatVb6 ( string Expression, float &Value ) : bool
Expression string
Value float
return bool
		internal static bool TryParseFloatVb6(string Expression, out float Value) {
			Expression = TrimInside(Expression);
			CultureInfo Culture = CultureInfo.InvariantCulture;
			for (int n = Expression.Length; n > 0; n--) {
				float a;
				if (float.TryParse(Expression.Substring(0, n), NumberStyles.Float, Culture, out a)) {
					Value = a;
					return true;
				}
			}
			Value = 0.0f;
			return false;
		}
		internal static bool TryParseIntVb6(string Expression, out int Value) {