Public Function VariantToCString( _ ByVal vBasicString As Variant _ ) As String
VariantToCString("Word") = "Word" + Chr$(0) VariantToCString(123456) = "123456" + Chr$(0) VariantToCString(Null) = Chr$(0)See also:
VariantToFixedCString functionNote: The VariantToFixedCString function has a similar purpose, except that it also makes sure that the result string has a specific length.
vBasicString: The value which is to be converted into a C string. Function returns a string containing a single Nil (Chr$(0)) character if vBasicString is Null.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.