trim(string) vs string.trim
I have an app that makes decisions based on string content. I need to make
sure that a string does not contain only spaces or newlines. I am using the
syntax 'Trim(String)" and it works fine. I thought I'd change it to the VB
..NET method "String.Trim" but that throws an object exception.
Which brings the question: is it compliant to use Trim(String), or is it
more within etiquette to use If Not String Is Nothing Then String.Trim?
.
Relevant Pages
- Re: June 2005 EAL Question
... parameter to a string. ... > public class MyEventLogInstaller: Installer ... You have a web app, ... >>> at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean ... (microsoft.public.dotnet.general) - Re: Running other applications
... associated with a file type (extension). ... file and calling FindExecutable: ... ByVal lpDirectory As String, ByVal lpResult As String) As Long ... > The app is a program called Data Junction. ... (microsoft.public.vb.general.discussion) - RE: SoapHttpClientProtocol request canceled
... the VB app on Citrix works fine with .NET components when only ... .NET1.1 is installed and the app uses .NET1.1. ... > The VB.NET exe and the VB6 exe both use VB.NET dll to sent request/response ... >> inputHeaderer, String messageControlPayload, string inputMessage) ... (microsoft.public.dotnet.framework.webservices) - Re: Multi language application
... the block below implies that you created your app as "Unicode app". ... Whether you choose UTF8 or UTF16 is really up to you but by default in a "Unicode app", you're likely to write less code with UTF16 strings. ... You can use::MultiByteToWideChar Win32 API to convert from UTF-8 to UTF-16, and pass the UTF-16 string to Windows controls. ... (microsoft.public.vc.mfc) - Re: Cocoa trouble
... Here, you're creating a new, empty string ... This is the preferred method of getting the path to a resource, ... start your app, the CWD is inherited from the shell environment unchanged. ... (comp.sys.mac.programmer.help) |
|