Originally posted by Jop
BTW, one of my favorite VB functions is still IsNummeric
It's spelt:

Code:
IsNumeric
Shish. Typical.

Anyway, my favourite APIs follow:

Code:
'Makes any app look really Microsofty:
Public Declare Function DrawEdge Lib "user32" Alias "DrawEdge" (ByVal hdc As Long, qrc As RECT, ByVal edge As Long, ByVal grfFlags As Long) As Long
'Gets your own back on VB's attempt to make ActiveX controls useless:
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
'Nice for tooblars
Public Declare Function DrawIconEx Lib "user32" Alias "DrawIconEx" (ByVal hdc As Long, ByVal xLeft As Long, ByVal yTop As Long, ByVal hIcon As Long, ByVal cxWidth As Long, ByVal cyWidth As Long, ByVal istepIfAniCur As Long, ByVal hbrFlickerFreeDraw As Long, ByVal diFlags As Long) As Long
'Basic move memory with VB:
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
'These go together (for creating special windows):
Public Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Public Declare Function CreateRectRgn Lib "gdi32" Alias "CreateRectRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Non API:
Code:
'Pointers do exist in VB :)
VarPtr()
'Good for strings
Like
Oh, well.

They're my favourite functions. (Well, CopyMemory's a Sub, and Like is an more of an operator)

Enough of this gay banter.

Au revoir (as Ms Le Pont would have us say)

[Edited by V(ery) Basic on 08-28-2000 at 05:19 AM]