Entries Categorized as 'Visual Basic'

Count Number of Words in a Sentence using ASP

Date October 16, 2009

There is no function in ASP to count number of words in sentence or long string. Bellow is very simple function that count number of words and return that count. < % Function CountWords (StrValue) Dim iWords, mLengthWithSpaces, mLengthWithoutSpaces ‘ following line calculate the actual length of string mLengthWithSpaces = Len(StrValue) ‘ following line remove [...]

StretchBlt – Picture Stretching

Date April 30, 2008

The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows stretches or compresses the bitmap according to the stretching mode currently set in the destination device context. Declare Function StretchBlt Lib “gdi32″ Alias “StretchBlt” (ByVal [...]

Subscribe to Technology Tips

Subscribe to Saqib-Ansari via RSS

Or, subscribe via email: