Imports VFPToolkit.strings 'strings is actually a class Imports VFPToolkit.dialogs Imports VFPToolkit.common Dim lcFile, lcString As String lcFile = GetFile() If Not Empty(lcFile) lcString = FileToStr(lcFile) End IfHere is the C# example:
using VFPToolkit; string lcFile, lcString ; lcFile = dialogs.GetFile(); if(!common.Empty(lcFile)) lcString = strings.FileToStr(lcFile) //or VFPToolkit.strings.FileToStr() End IfIn this case we had to prefix the class name such as dialogs.GetFile(). There is always intellisense, so it is not that big of a deal and C# also provide a way to specify aliases:
using vfpS = VFPToolkit.strings; using vfpd = VFPToolkit.dialogs; ... // from code we simply access using vfpd.GetFont()hth,