CarlaCruz


Hi!

I'm a portuguese school teacher that uses vb 6.0.

The error mentioned occurs here **:

Public Sub introduz()
i = 0
Do While i <= 20
VF.Nr(i) = Val(InputBox("Introduza o numero de cliente", "Numero de cliente")) **
VF.NomeCliente(i) = InputBox("Introduza o nome do cliente", "Nome do cliente")
If VF.NomeCliente(i) = ("XYZ") Then
Exit Do
End If
VF.Dt(i) = InputBox("Introduza a Data da Factura", "Data da Factura")
i = i + i
Loop
End Sub

That's an array defined with public statement that uses an type structure also defined with public statement.

Can anyone help me

My students say thanks!!



Re: compile error: invalid quaifier

Andy Pope


Hi,

The following works for me.

Public Type typVF
Nr(20) As Long
NomeCliente(20) As String
Dt(20) As Date
End Type
Public VF As typVF
Public Sub introduz()
Dim i

i = 0
Do While i <= 20
VF.Nr(i) = Val(InputBox("Introduza o numero de cliente", "Numero de cliente")) ' **
VF.NomeCliente(i) = InputBox("Introduza o nome do cliente", "Nome do cliente")
If VF.NomeCliente(i) = ("XYZ") Then
Exit Do
End If
VF.Dt(i) = InputBox("Introduza a Data da Factura", "Data da Factura")
i = i + i
Loop

End Sub

Can you post the code where you define and declare the type.





Re: compile error: invalid quaifier

CarlaCruz

Hi!

Thanks a lot!

It works like this!!!!

Thanks!!

SmileSmile






Re: compile error: invalid quaifier

CarlaCruz

Hi!

Thanks a lot!

It works like this!!!!

Thanks!!

SmileSmile