Y
If Isnumeric(s1) Then
If Len(s1)=4 Then
'=я здесь должен проверить что s1 именно интеджер а не какой нибудь дабл
end if
end if
мЫсль правильная, но немного не дочитали хэлпIf Len(s1)=4 Then
Len(Cstr(s1)) = 4 или по пределам ( 1900 < s1 < 2100 )именно год:то есть 4 значный интнджер
че будет еслиLen(Cstr(s1)) = 4 или по пределам ( 1900 < s1 < 2100 )
s1="1910,452" - стрингче будет если
s1="1910,452"
1900 < 1910,452 < 2100
( Help © )If expr is a string expression, CInt returns the numeric representation of the string, rounded to the nearest integer. If LotusScript cannot convert the string to a number, the function returns an error.
Dim iYear as integer
if IsNumeric( s1 ) then
iYear = Cint( s1 )
if 1900 < iYear < 2100 then
....
End if
End if
s1=Cstr(eyfen.ColumnValues(0))
If Isnumeric(s1) Then
If Len(s1)=4 Then
If Fraction(Cdbl(s1))=0 Then
'=do somthing
end if
end if
end if
и что опять же попадаетесь на 1919,3515310351483If Len(s1)=4 Then
тю....Cdbl(s1)
Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab