Okay let me put my project, can you tell me if I would need a class for it?
I have a UDT Named person:
[Example]
VB Code:
Public Type Person FName as string LName as string Address as string Town as string End Type
Okay, and now I have another type:
VB Code:
Public Type Location Hemisphere as string Country as string X as long Y as long End Type
VB Code:
Dim tPerson as Person Dim tLocation as Location
So in my form, I send some of the info in a strange order to my server
VB Code:
With winsock1 .senddata tPerson.FName & tPserson.LName & Chr(0) & tPerson.Address & chr(0) & tLocation.Country End with
I fill in the value with previous winsock requests/sends..Is there reason to use a class? I have some other UDT's with permanent values also that I send in some winsocks also.
Is this reason enough to use a class or should I stick with the UDT + other code?





Reply With Quote