Christof has given you a good VFP interpretation of the code below. In order to translate large blocks of Visual Basic code I use a VB to VFP converter I wrote sometime back. It's not perfect, but it will usually get you pretty close by handling some of the mundane aspects of converting VB to VFP. It's freely available on my blog. Here's the permalink in case you or anyone else is interested:
http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,453c9b02-e964-4311-850b-abcdcd84ddb3.aspx>Can anyone show me how to translate this VB6 code into VFP8 code?
>
> Dim oSvc As AddressSvc
> Dim oAddress As Address
> Dim oResult As ValidateResult
> Set oSvc = New AddressSvc
> Set oAddress = New Address
> oAddress.Line1 = "900 Winslow Way"
> oAddress.City = "Bainbridge Island"
> oAddress.Region = "WA"
> oAddress.PostalCode = "98110"
> Set oResult = oSvc.Validate(address)
>
>Thanks