[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

float-integer error with \


this code did work...

  Dim iSize As Integer
  iSize = (vbSize.Value \ 3) * 3

Now it says error Got Float but Integer expected.
I tried using a float and various Cint usages but got the same error.
I tried all sorts and always got the error using backslash \

I fixed with replacing backslash for Floor..
  Dim iSize As Integer
  iSize = Floor(vbSize.Value / 3) * 3

A problem with backslash division perhaps?

Respects
BruceS

Follow-Ups:
Re: float-integer error with \Bruce Steers <bsteers4@xxxxxxxxx>