Returns the string from the function

zhaozj2021-02-12  147

Returning from a function There are two versions of some functions: a return Variant data type, and another returns a String data type. The Variant version is more convenient because the deformation automatically handles different types of transmission. They also allow NULL to be sent through expressions. The String version is more efficient because they use fewer memory. Use String versions when there is the following cases:

The program is large and uses a lot of variables. Write the data directly to a random access file. When a dollar symbol ($) is added later after the function name, the following functions return a value for the Sting variable. If these functions do not add US dollar symbol usage and syntax equivalent to Variant.

Chr $ ChrB $ * Command $ CurDir $ Date $ Dir $ Error $ Format $ Hex $ Input $ InputB $ LCase $ Left $ LeftB $ LTrim $ Mid $ MidB $ Oct $ Right $ RightB $ RTrim $ Space $ Str $ String $ Time $ TIM $ UCASE $

转载请注明原文地址:https://www.9cbs.com/read-6798.html

New Post(0)