What does str mean in vb?
str is a function of VB that can convert numeric variables or constants into character variables or constants.
The function of the str function is to return a Variant (String) representing a numerical value. When a number is converted into a string, a space is always left at the front to represent positive and negative numbers. If number is positive, the returned string contains a leading space to imply a positive sign.
Note that the Str function only treats periods (.) as valid decimal points. If you use a different decimal point (for example, an international application), use CStr to convert the number to a string. Use the Str function to convert a number into a string. When the number is converted into a string, the first digit of the string must be a space or a sign.
Extended information:
Visual Basic (VB) is derived from the BASIC programming language. VB has a graphical user interface (GUI) and a rapid application development (RAD) system. You can easily use DAO, RDO, and ADO to connect to the database, or easily create ActiveX controls. Programmers can easily use the components provided by VB to quickly build an application.
The central idea of VB is to be easy to use for programmers, whether they are novices or experts. VB uses a GUI system that can easily create applications, but can also develop quite complex programs. A VB program is a form-based arrangement of visual components, and code is added to specify the properties and methods of the components.
Because some of the default properties and methods are already defined in the component, programmers can complete a simple program without writing much code. In past versions, the performance issues of VB programs have been discussed on the table, but with the rapid increase in computer speed, the debate about performance has become less and less.
The above is the detailed content of What does str mean in vb. For more information, please follow other related articles on the PHP Chinese website!