Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - Space$

Posted in WinTask

'
' Space$() - return a string with nn spaces
'

' Author: Joe Strazzere

'

 

Dim spaceptr as unsigned

 

Function Space$(nn)
    spaceptr=allocate(nn)
    External("user32.dll", "wsprintfA", spaceptr, "%"+str$(nn)+"s", "")
    Space$=peekstring$(spaceptr)
EndFunction

 

a$=Space$(123)

 

'msgbox("Length of resulting string is "+str$(Len(a$)),,"Space$")
msgbox("["+a$+"]",,"Space$")


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now