While converting a string, there are several valid ways to insert space.
Space Function:
Print "A" & amp; Space (1) & amp; Do "A" & amp; "" & Amp; "B" AB
VS
Chr:
print "A" & amp; Chr (32) & amp; "B" AB
The results are the same as all three methods: (
former> Can anyone provide any information that why one method is better than another?
As suggested, when compiled, they all get the same results.
1) space ()
- Good when many places are required. Space (100) chr (32) & amp; Chr (32) & amp; Chr (32) & amp; ...
2) ""
- Easy to understand virtual expression, new VBA to learn ASP
Edit: and also Compared to the fast one method call, to point out blackhawk
3) chr ()
- Character expression that printed a special character to tell a text file Can be used to entering / return printing does not appear to have any obvious advantage for print space, such as chr (10) / P>
Comments
Post a Comment