Jump to content

[VB6] Achar a Semana atraves do dia


patoche
 Share

Recommended Posts

Da-me erros. Isso deve ser para Vb Net ou coisa do genero.

A linha "Return Math.Ceiling(expenseDate.DayOfYear / 7)" Fica logo a vermelho mal faço enter

Math.Ceiling, isto tb nao existe a nao ser que tenha que acrescentar alguma referencia ou objecto.

Private Function GetWeekNumber(ByVal expenseDate As Date) As Integer
   XPTO = Math.Ceiling(expenseDate.DayOfYear / 7)
End Function

Ao correr assim da-me um erro no "espenseDate" diz: Invalid qualifier

Link to comment
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
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.