qwert

How to insert or append "n" characters?

5 posts in this topic

If I'm sending to a control, this feature is provided:

Quote

   Send("{S 30}") ;Sends 30 'S' characters

But how can add multiple occurrences of a character to a string?  For example, what notation gives "& <n of Chr(65)>", where n is the number ... like 30.

Thanks in advance for any help.

Share this post


Link to post
Share on other sites



Why not send just A instead of the ASCII code? Then you could do:

Send("{A 30}")

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I would, if I was sending.

My statement is more like $string = $string & <n of Chr(65)>

In other words, $string is a variable, not a control.

Share this post


Link to post
Share on other sites

Please check the help file for function _StringRepeat ( $sString, $iRepeatCount )


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

That's it!  Thanks.

I was caught up searching for character operations.  I never noticed _StringRepeat.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now