Вы находитесь на странице: 1из 2774

SCRIPT Lims - Funciones Avanzadas

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido I

Tabla de Contenidos
Parte I Introduction 2

Parte II Alphabetically ordered 4


1 A ................................................................................................................................... 4
AAt() .......................................................................................................................................................... 4
aBrwPosRec() .......................................................................................................................................................... 4
Accept() .......................................................................................................................................................... 5
AddFontResource()
.......................................................................................................................................................... 6
aDrives() .......................................................................................................................................................... 8
aFindFile() .......................................................................................................................................................... 8
aGetPrinters().......................................................................................................................................................... 10
aGetWorkAreas()
.......................................................................................................................................................... 10
AllTrim() .......................................................................................................................................................... 11
AnimOpen() .......................................................................................................................................................... 13
AnimOpenEx().......................................................................................................................................................... 13
AnimPlay() .......................................................................................................................................................... 14
AnsiToOem() .......................................................................................................................................................... 14
AnsiToWide() .......................................................................................................................................................... 16
Alert() .......................................................................................................................................................... 17
aMidiDevices()
.......................................................................................................................................................... 18
AnsiLower() .......................................................................................................................................................... 19
AnsiUpper() .......................................................................................................................................................... 20
aOData() .......................................................................................................................................................... 21
AppendMenu() .......................................................................................................................................................... 22
Arc() .......................................................................................................................................................... 24
ARead() .......................................................................................................................................................... 25
Arg() .......................................................................................................................................................... 26
ASave() .......................................................................................................................................................... 28
ASend() .......................................................................................................................................................... 29
ATang() .......................................................................................................................................................... 30
aTcBrwPosRec()
.......................................................................................................................................................... 31
aTreeBmps() .......................................................................................................................................................... 33
AuxGetDev() .......................................................................................................................................................... 33
Auxgetvol() .......................................................................................................................................................... 35
Auxsetvol() .......................................................................................................................................................... 36
aWBrwRowDim().......................................................................................................................................................... 37
2 B ................................................................................................................................... 37
B2Bin() .......................................................................................................................................................... 37
BarAdjust() .......................................................................................................................................................... 39
Barinvert() .......................................................................................................................................................... 39
Barpaint() .......................................................................................................................................................... 40
BeginPaint() .......................................................................................................................................................... 41
Bin2D() .......................................................................................................................................................... 43
BinToN() .......................................................................................................................................................... 44
Bindtoport() .......................................................................................................................................................... 44
BinToC() .......................................................................................................................................................... 45
Bitblt() .......................................................................................................................................................... 46
BringWindo() .......................................................................................................................................................... 48
Browse() .......................................................................................................................................................... 49

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido II

Btndisable() .......................................................................................................................................................... 50
BtnPaint() .......................................................................................................................................................... 51
BuildCommDCB()
.......................................................................................................................................................... 52
3 C ................................................................................................................................... 53
C2Hex() .......................................................................................................................................................... 53
CallDll() .......................................................................................................................................................... 54
Calldll32() .......................................................................................................................................................... 56
CallWindowProc()
.......................................................................................................................................................... 57
CaretFLine() .......................................................................................................................................................... 59
cArgV() .......................................................................................................................................................... 60
cChr2Data() .......................................................................................................................................................... 61
cCtrl2Chr() .......................................................................................................................................................... 62
cDlg2Chr() .......................................................................................................................................................... 64
cFileDisc() .......................................................................................................................................................... 66
cFileExt() .......................................................................................................................................................... 67
cFileMask() .......................................................................................................................................................... 68
cFileName() .......................................................................................................................................................... 68
cFileNoExt() .......................................................................................................................................................... 69
cFileNoPath() .......................................................................................................................................................... 70
cFilePath() .......................................................................................................................................................... 71
cFileSubDir() .......................................................................................................................................................... 72
cFreadLine() .......................................................................................................................................................... 73
cGetDir() .......................................................................................................................................................... 74
cGetDir32() .......................................................................................................................................................... 75
cGetExpression()
.......................................................................................................................................................... 75
cGetFile() .......................................................................................................................................................... 77
cGetFile32() .......................................................................................................................................................... 78
cGetNewAlias() .......................................................................................................................................................... 81
ChangeProc().......................................................................................................................................................... 82
Checkmenu().......................................................................................................................................................... 83
ChildLevel() .......................................................................................................................................................... 84
Childwindo() .......................................................................................................................................................... 85
ChooseColor() .......................................................................................................................................................... 86
ChooseFont().......................................................................................................................................................... 87
Chord() .......................................................................................................................................................... 89
ClassCreat() .......................................................................................................................................................... 90
ClientIp() .......................................................................................................................................................... 91
ClientToScreen()
.......................................................................................................................................................... 93
CloseClipboard()
.......................................................................................................................................................... 94
CloseComm().......................................................................................................................................................... 96
CloseEnhMetaFile()
.......................................................................................................................................................... 97
CloseMetafile().......................................................................................................................................................... 98
CloseSocket().......................................................................................................................................................... 99
CloseWindow().......................................................................................................................................................... 100
CloseZipFile()
.......................................................................................................................................................... 101
cMidiMapper().......................................................................................................................................................... 102
cMDIStruct() .......................................................................................................................................................... 102
cMimeDec() .......................................................................................................................................................... 104
cMimeEnc() .......................................................................................................................................................... 104
cNewFileName()
.......................................................................................................................................................... 105
cNtxKey() .......................................................................................................................................................... 106
ColorsQty() .......................................................................................................................................................... 107
ConnectTo() .......................................................................................................................................................... 108
Cos() .......................................................................................................................................................... 109

© 2011 Infosys Argentina

II
SCRIPT Lims - Funciones Avanzadas Contenido III

CPUType() .......................................................................................................................................................... 109


CreateBmpCursor()
.......................................................................................................................................................... 110
CreateCare().......................................................................................................................................................... 111
CreateCDC().......................................................................................................................................................... 112
CreateDC() .......................................................................................................................................................... 114
CreateDlgIndirect()
.......................................................................................................................................................... 115
CreateEnhMetaFile()
.......................................................................................................................................................... 117
CreateFont().......................................................................................................................................................... 117
CreateHatch()
.......................................................................................................................................................... 119
CreateMenu().......................................................................................................................................................... 121
CreateMetaFile()
.......................................................................................................................................................... 122
CreateOLEObject()
.......................................................................................................................................................... 122
CreatePattern()
.......................................................................................................................................................... 123
CreatePen() .......................................................................................................................................................... 124
CreatePopUpMenu()
.......................................................................................................................................................... 126
CreateSolidBrush()
.......................................................................................................................................................... 127
CreateWindow()
.......................................................................................................................................................... 129
cResToStr() .......................................................................................................................................................... 130
cStrWord() .......................................................................................................................................................... 132
cTempFile() .......................................................................................................................................................... 132
Ctl3dlook() .......................................................................................................................................................... 133
Ctrldrawfocus()
.......................................................................................................................................................... 134
CurDrive() .......................................................................................................................................................... 135
Cursor() .......................................................................................................................................................... 136
CursorArrow()
.......................................................................................................................................................... 137
CursorCatch()
.......................................................................................................................................................... 138
CursorDrag().......................................................................................................................................................... 139
CursorHand().......................................................................................................................................................... 140
CursorIbeam()
.......................................................................................................................................................... 142
CursorNS() .......................................................................................................................................................... 143
CursorSize().......................................................................................................................................................... 144
CursorStop().......................................................................................................................................................... 146
CursorWait().......................................................................................................................................................... 146
CursorWE() .......................................................................................................................................................... 148
cValToChar().......................................................................................................................................................... 149
cWinVersion()
.......................................................................................................................................................... 150
4 D ................................................................................................................................... 151
D2bin() .......................................................................................................................................................... 151
DbClearInd().......................................................................................................................................................... 152
DbClearRel() .......................................................................................................................................................... 154
DbCloseAre() .......................................................................................................................................................... 155
DbCommital() .......................................................................................................................................................... 156
DbCopyStru().......................................................................................................................................................... 157
DbCreteIn() .......................................................................................................................................................... 158
DbfCdx() .......................................................................................................................................................... 160
DbfCdxAx() .......................................................................................................................................................... 161
DbfNtx() .......................................................................................................................................................... 162
DbPack() .......................................................................................................................................................... 164
DbPx() .......................................................................................................................................................... 165
DbRLockLis().......................................................................................................................................................... 166
DbSelectAr().......................................................................................................................................................... 167
DbSetDefa() .......................................................................................................................................................... 168
DbSetDrive() .......................................................................................................................................................... 169
DbSetFilte() .......................................................................................................................................................... 171

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido IV

DbSetRelat() .......................................................................................................................................................... 172


DbUnlockAl().......................................................................................................................................................... 173
DbZap() .......................................................................................................................................................... 174
DDEAccessData()
.......................................................................................................................................................... 176
DDEAck() .......................................................................................................................................................... 177
DDEclientt() .......................................................................................................................................................... 179
DDEcmpstri().......................................................................................................................................................... 180
DDECommand() .......................................................................................................................................................... 181
DDEconnect().......................................................................................................................................................... 183
DDECreateDataHandle()
.......................................................................................................................................................... 184
DDECreateStringHandle()
.......................................................................................................................................................... 185
DDEdisconn().......................................................................................................................................................... 186
DDEfreedataHandle()
.......................................................................................................................................................... 187
DDEfreestr() .......................................................................................................................................................... 188
DDEGetCommand()
.......................................................................................................................................................... 189
DDEGetData().......................................................................................................................................................... 191
DDEGetLastError()
.......................................................................................................................................................... 192
DDEinitial() .......................................................................................................................................................... 193
DDEnameser() .......................................................................................................................................................... 194
DDEqueryst().......................................................................................................................................................... 196
DDEServer() .......................................................................................................................................................... 197
DDETerminate()
.......................................................................................................................................................... 199
DDEuniniti() .......................................................................................................................................................... 201
DecToHex() .......................................................................................................................................................... 202
Decrypt() .......................................................................................................................................................... 203
Defwindowp() .......................................................................................................................................................... 204
DelDbfMdx() .......................................................................................................................................................... 205
DeleteDC() .......................................................................................................................................................... 207
DeleteEnhMetaFile()
.......................................................................................................................................................... 209
DeleteMeta().......................................................................................................................................................... 210
DeleteObject()
.......................................................................................................................................................... 211
DelIniEntr() .......................................................................................................................................................... 213
Delinisect() .......................................................................................................................................................... 214
Delresource().......................................................................................................................................................... 215
DelwndBrus() .......................................................................................................................................................... 216
DestroyCaret()
.......................................................................................................................................................... 217
DestroyCursor()
.......................................................................................................................................................... 218
Destroyico() .......................................................................................................................................................... 220
DestroyMenu().......................................................................................................................................................... 221
DestroyWindow()
.......................................................................................................................................................... 222
DeviceCapa().......................................................................................................................................................... 224
DevMode() .......................................................................................................................................................... 228
DialogBoxIndirect()
.......................................................................................................................................................... 231
DibDraw() .......................................................................................................................................................... 233
DibFromBitmap()
.......................................................................................................................................................... 234
DibHeight() .......................................................................................................................................................... 236
DibPalette() .......................................................................................................................................................... 238
DibRead() .......................................................................................................................................................... 239
DibWidth() .......................................................................................................................................................... 241
DibWrite() .......................................................................................................................................................... 243
DiskChange() .......................................................................................................................................................... 244
DispFontPerSize()
.......................................................................................................................................................... 245
Ditbackgrd() .......................................................................................................................................................... 246
DlgFindText().......................................................................................................................................................... 247

© 2011 Infosys Argentina

IV
SCRIPT Lims - Funciones Avanzadas Contenido V

Dotsadjust() .......................................................................................................................................................... 249


DPToLP() .......................................................................................................................................................... 250
Draftmode() .......................................................................................................................................................... 252
DragAccept().......................................................................................................................................................... 253
Dragfinish() .......................................................................................................................................................... 255
DragQueryFiles()
.......................................................................................................................................................... 256
DragqueryPoint()
.......................................................................................................................................................... 256
DrawBitmap().......................................................................................................................................................... 258
DrawFGetLine()
.......................................................................................................................................................... 260
Drawfocusr().......................................................................................................................................................... 261
DrawGrayed() .......................................................................................................................................................... 263
Drawgrid() .......................................................................................................................................................... 264
DrawIcon() .......................................................................................................................................................... 265
DrawIconFocus()
.......................................................................................................................................................... 267
DrawMasked() .......................................................................................................................................................... 268
DrawMenuBa() .......................................................................................................................................................... 270
DrawMsgItem().......................................................................................................................................................... 271
DrawSelector()
.......................................................................................................................................................... 273
DrawSlider() .......................................................................................................................................................... 274
DrawText() .......................................................................................................................................................... 275
DrawTextEx().......................................................................................................................................................... 278
DupRecord() .......................................................................................................................................................... 280
5 E ................................................................................................................................... 281
EditCell() .......................................................................................................................................................... 281
Ellipse() .......................................................................................................................................................... 283
EmptyClipboard()
.......................................................................................................................................................... 284
EnableComm() .......................................................................................................................................................... 286
EnableMenu() .......................................................................................................................................................... 288
EnableWindow()
.......................................................................................................................................................... 290
Encrypt() .......................................................................................................................................................... 291
EndDialog() .......................................................................................................................................................... 292
Enddoc() .......................................................................................................................................................... 294
Endmonitor().......................................................................................................................................................... 295
EndPage() .......................................................................................................................................................... 296
EndPaint() .......................................................................................................................................................... 298
EnumFontFa() .......................................................................................................................................................... 299
Escape() .......................................................................................................................................................... 302
EscapeComm() .......................................................................................................................................................... 304
ExitWindowsExec()
.......................................................................................................................................................... 306
ExitWnd() .......................................................................................................................................................... 307
ExtDrawIcon().......................................................................................................................................................... 308
ExtFloodFi() .......................................................................................................................................................... 309
ExtractIcon().......................................................................................................................................................... 311
ExtTextOut() .......................................................................................................................................................... 313
6 F ................................................................................................................................... 314
FAttrib() .......................................................................................................................................................... 314
FCommit() .......................................................................................................................................................... 316
FDate() .......................................................................................................................................................... 316
ffMimeDec() .......................................................................................................................................................... 317
ffMimeEnc() .......................................................................................................................................................... 318
Field() .......................................................................................................................................................... 320
FieldType() .......................................................................................................................................................... 321
FieldWbloc() .......................................................................................................................................................... 322

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido VI

Fillevent() .......................................................................................................................................................... 323


FillRect() .......................................................................................................................................................... 325
FindExecut() .......................................................................................................................................................... 327
FindIcon() .......................................................................................................................................................... 329
FindResource()
.......................................................................................................................................................... 329
FindText() .......................................................................................................................................................... 331
Findwindow() .......................................................................................................................................................... 332
FloodFill() .......................................................................................................................................................... 334
FlushComm() .......................................................................................................................................................... 335
fMimeDec() .......................................................................................................................................................... 337
fMimeEnc() .......................................................................................................................................................... 338
FoldPaint() .......................................................................................................................................................... 339
FormatFLine().......................................................................................................................................................... 340
FrameDot() .......................................................................................................................................................... 341
Freelib32() .......................................................................................................................................................... 342
FreeLibrary().......................................................................................................................................................... 342
FreeResources()
.......................................................................................................................................................... 344
FSize() .......................................................................................................................................................... 345
FTime() .......................................................................................................................................................... 346
FWBitmap() .......................................................................................................................................................... 346
FWBrushes().......................................................................................................................................................... 348
FWDispBegin().......................................................................................................................................................... 349
FWDispEnd().......................................................................................................................................................... 350
7 G ................................................................................................................................... 351
GetActiveWindow()
.......................................................................................................................................................... 351
GetAllWin() .......................................................................................................................................................... 352
GetASyncKey()
.......................................................................................................................................................... 352
Getbkcolor().......................................................................................................................................................... 354
GetCapture().......................................................................................................................................................... 355
GetCaretPos()
.......................................................................................................................................................... 357
GetClassInfo()
.......................................................................................................................................................... 358
GetClassName()
.......................................................................................................................................................... 359
GetClientRect()
.......................................................................................................................................................... 360
GetClpData().......................................................................................................................................................... 362
GetCommError()
.......................................................................................................................................................... 364
GetCoors() .......................................................................................................................................................... 365
Getcpu() .......................................................................................................................................................... 367
GetCpuSpeed()
.......................................................................................................................................................... 368
GetCtrlId() .......................................................................................................................................................... 369
Getcurdir() .......................................................................................................................................................... 370
GetCursorDrag()
.......................................................................................................................................................... 371
GetCursorHand()
.......................................................................................................................................................... 372
GetCursorPos()
.......................................................................................................................................................... 372
GetCursorStop()
.......................................................................................................................................................... 374
GetDatas() .......................................................................................................................................................... 374
GetDatePick()
.......................................................................................................................................................... 376
GetDC() .......................................................................................................................................................... 376
GetDesktopWindow()
.......................................................................................................................................................... 378
GetDeviceCaps()
.......................................................................................................................................................... 380
GetDialogBaseUnits()
.......................................................................................................................................................... 387
GetDlgBase().......................................................................................................................................................... 388
GetDlgItem().......................................................................................................................................................... 390
GetDrawIte().......................................................................................................................................................... 391
GetDrawMenu()
.......................................................................................................................................................... 393

© 2011 Infosys Argentina

VI
SCRIPT Lims - Funciones Avanzadas Contenido VII

GetDropInfo().......................................................................................................................................................... 394
GetEnhMetaFile()
.......................................................................................................................................................... 396
GetFClipData()
.......................................................................................................................................................... 397
GetFirstInZip()
.......................................................................................................................................................... 397
GetFocus() .......................................................................................................................................................... 399
GetFontInfo().......................................................................................................................................................... 400
GetFontNames()
.......................................................................................................................................................... 402
GetFrameProc()
.......................................................................................................................................................... 402
GetFreeFil() .......................................................................................................................................................... 404
GetFreeSpace()
.......................................................................................................................................................... 405
GetFreeSystemResources()
.......................................................................................................................................................... 407
GetFTime() .......................................................................................................................................................... 407
GetGridSize().......................................................................................................................................................... 409
GetHelpFile().......................................................................................................................................................... 410
GetHelpTopic()
.......................................................................................................................................................... 412
GetHostByAddress()
.......................................................................................................................................................... 413
GetHostByName()
.......................................................................................................................................................... 413
GetHostName().......................................................................................................................................................... 414
GethWnd32().......................................................................................................................................................... 416
GetInstance().......................................................................................................................................................... 417
GetIP() .......................................................................................................................................................... 418
GetKeyStat() .......................................................................................................................................................... 419
GetKeyToggle()
.......................................................................................................................................................... 421
GetLabelDim().......................................................................................................................................................... 422
GetLastError()
.......................................................................................................................................................... 423
GetLocal() .......................................................................................................................................................... 423
GetMapMode() .......................................................................................................................................................... 425
GetMDIChlP().......................................................................................................................................................... 427
GetMeaItem() .......................................................................................................................................................... 429
GetMenuState()
.......................................................................................................................................................... 430
GetMenuString()
.......................................................................................................................................................... 432
GetMetaBit().......................................................................................................................................................... 433
GetMetaFile().......................................................................................................................................................... 434
GetMItemCount()
.......................................................................................................................................................... 436
GetMItemId().......................................................................................................................................................... 436
GetModuleFileName()
.......................................................................................................................................................... 438
GetModuleHandle()
.......................................................................................................................................................... 439
GetNextInZip()
.......................................................................................................................................................... 439
GetNumTask() .......................................................................................................................................................... 441
GetOrdNames().......................................................................................................................................................... 442
GetParam() .......................................................................................................................................................... 443
GetParent() .......................................................................................................................................................... 445
GetPeerName().......................................................................................................................................................... 447
GetPEnhMetaFile()
.......................................................................................................................................................... 448
GetPixel() .......................................................................................................................................................... 449
GetPMetaFile()
.......................................................................................................................................................... 450
Getport() .......................................................................................................................................................... 451
GetPrintDC() .......................................................................................................................................................... 452
GetPrintDefault()
.......................................................................................................................................................... 453
GetPrinter() .......................................................................................................................................................... 453
GetProc32() .......................................................................................................................................................... 455
GetProcAddress()
.......................................................................................................................................................... 458
GetProfInt() .......................................................................................................................................................... 461
GetProfStr() .......................................................................................................................................................... 463

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido VIII

GetPromptRect()
.......................................................................................................................................................... 465
GetProp() .......................................................................................................................................................... 466
GetPvProfInt()
.......................................................................................................................................................... 468
GetPvpProfString()
.......................................................................................................................................................... 469
GetQuery() .......................................................................................................................................................... 471
GetResources()
.......................................................................................................................................................... 472
GetScrollPos()
.......................................................................................................................................................... 473
GetScrollRange()
.......................................................................................................................................................... 474
GetServByName()
.......................................................................................................................................................... 475
GetStockObject()
.......................................................................................................................................................... 477
GetSubMenu() .......................................................................................................................................................... 479
GetSysColor().......................................................................................................................................................... 480
GetSysDir() .......................................................................................................................................................... 482
GetSysFont().......................................................................................................................................................... 483
GetSysMetrics()
.......................................................................................................................................................... 484
GetSystemMenu()
.......................................................................................................................................................... 486
GetTasks() .......................................................................................................................................................... 488
GetTextAlign()
.......................................................................................................................................................... 489
GetTextColor()
.......................................................................................................................................................... 491
GetTextHeight()
.......................................................................................................................................................... 492
GetTextWidth()
.......................................................................................................................................................... 493
GetTickCount()
.......................................................................................................................................................... 494
GetVersion().......................................................................................................................................................... 495
GetViewportOrgEx()
.......................................................................................................................................................... 496
GetWinDir() .......................................................................................................................................................... 497
GetWindow().......................................................................................................................................................... 498
GetWindowDC().......................................................................................................................................................... 500
GetWindowLong()
.......................................................................................................................................................... 501
GetWindowOrgEx()
.......................................................................................................................................................... 502
GetWindowsDirectory()
.......................................................................................................................................................... 502
GetWindowText()
.......................................................................................................................................................... 503
GetWindowWord()
.......................................................................................................................................................... 504
GetWinFlags().......................................................................................................................................................... 505
GetWinTxtLength()
.......................................................................................................................................................... 507
GetWinVer() .......................................................................................................................................................... 509
GetWndApp().......................................................................................................................................................... 509
GetWndDefault()
.......................................................................................................................................................... 510
GetWndFrame().......................................................................................................................................................... 511
GetWndRect() .......................................................................................................................................................... 512
GetWndTask() .......................................................................................................................................................... 513
GlobalAddAtom()
.......................................................................................................................................................... 515
GlobalAlloc().......................................................................................................................................................... 516
GlobalCompact()
.......................................................................................................................................................... 519
GlobalData() .......................................................................................................................................................... 520
GlobalDelAtom()
.......................................................................................................................................................... 522
GlobalFree() .......................................................................................................................................................... 522
GlobalGetA().......................................................................................................................................................... 524
GlobalLock().......................................................................................................................................................... 525
GlobalRealloc()
.......................................................................................................................................................... 527
GlobalSize() .......................................................................................................................................................... 528
GlobalUnlock()
.......................................................................................................................................................... 530
GTFToRTF() .......................................................................................................................................................... 531
GTFToTxt() .......................................................................................................................................................... 532
8 H ................................................................................................................................... 532

© 2011 Infosys Argentina

VIII
SCRIPT Lims - Funciones Avanzadas Contenido IX

HasResources()
.......................................................................................................................................................... 532
HeightFLine().......................................................................................................................................................... 533
HelpCtrlhWnd()
.......................................................................................................................................................... 534
HelpIndex() .......................................................................................................................................................... 535
HelpPopup() .......................................................................................................................................................... 536
HelpSearch().......................................................................................................................................................... 537
HelpSetPos().......................................................................................................................................................... 538
HelpTopic() .......................................................................................................................................................... 539
HexToDec() .......................................................................................................................................................... 541
Hex2Str() .......................................................................................................................................................... 542
HideCaret() .......................................................................................................................................................... 543
HiliMenuItem()
.......................................................................................................................................................... 544
HTMLHelp() .......................................................................................................................................................... 546
Htons() .......................................................................................................................................................... 547
9 I ................................................................................................................................... 548
I2Hex() .......................................................................................................................................................... 548
IlAdd() .......................................................................................................................................................... 550
IlAddIcon() .......................................................................................................................................................... 550
IlAddMasked().......................................................................................................................................................... 551
IlCreate() .......................................................................................................................................................... 552
IlDestroy() .......................................................................................................................................................... 553
IlSetBkColor()
.......................................................................................................................................................... 553
ImportRawFile()
.......................................................................................................................................................... 554
Inet_address()
.......................................................................................................................................................... 555
InporByte() .......................................................................................................................................................... 556
InportWord().......................................................................................................................................................... 558
InsertMenu().......................................................................................................................................................... 559
InterruptRegister()
.......................................................................................................................................................... 562
InterruptUnRegister()
.......................................................................................................................................................... 563
InvalidateRect()
.......................................................................................................................................................... 564
InvertRect() .......................................................................................................................................................... 566
IsAnsi() .......................................................................................................................................................... 568
IsAnsiLower().......................................................................................................................................................... 569
IsAnsiUpper().......................................................................................................................................................... 570
IsCdRom() .......................................................................................................................................................... 571
IsChild() .......................................................................................................................................................... 572
IsDefButton().......................................................................................................................................................... 574
IsDiskette() .......................................................................................................................................................... 575
IsExeRunning()
.......................................................................................................................................................... 577
IsGTF() .......................................................................................................................................................... 577
IsIconic() .......................................................................................................................................................... 578
IsMenu() .......................................................................................................................................................... 579
IsOEM() .......................................................................................................................................................... 580
IsOverWnd().......................................................................................................................................................... 581
IsRTF() .......................................................................................................................................................... 583
IsWin95() .......................................................................................................................................................... 583
IsWin2000() .......................................................................................................................................................... 585
IsWindow() .......................................................................................................................................................... 586
IsWindowEnabled()
.......................................................................................................................................................... 586
IsWindowVisible()
.......................................................................................................................................................... 587
IsWinNT() .......................................................................................................................................................... 588
IsWinXP() .......................................................................................................................................................... 589
IsZip() .......................................................................................................................................................... 590
IsZoomed() .......................................................................................................................................................... 591

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido X

10 J ................................................................................................................................... 593
JoyGetDevCaps()
.......................................................................................................................................................... 593
JoyGetNumDevs()
.......................................................................................................................................................... 595
JoyGetPos() .......................................................................................................................................................... 596
JoyGetThreshold()
.......................................................................................................................................................... 598
JoyReleaseCapture()
.......................................................................................................................................................... 600
JoySetCapture()
.......................................................................................................................................................... 602
JoySetThre().......................................................................................................................................................... 603
11 K ................................................................................................................................... 605
KeyFast() .......................................................................................................................................................... 605
KeyToggle() .......................................................................................................................................................... 606
KillTimer() .......................................................................................................................................................... 607
12 L ................................................................................................................................... 609
L2Hex() .......................................................................................................................................................... 609
lAnd() .......................................................................................................................................................... 611
LargeFonts().......................................................................................................................................................... 613
LastItemPos().......................................................................................................................................................... 614
LastMenu() .......................................................................................................................................................... 614
LbxDrawItem().......................................................................................................................................................... 615
LbxGetItem().......................................................................................................................................................... 617
LbxGetSelItems()
.......................................................................................................................................................... 619
LbxMeasure() .......................................................................................................................................................... 620
lChDir() .......................................................................................................................................................... 622
lClose() .......................................................................................................................................................... 624
lCreat() .......................................................................................................................................................... 625
LenFLine() .......................................................................................................................................................... 626
Lfn2sfn() .......................................................................................................................................................... 627
lGetTextLine()
.......................................................................................................................................................... 628
LineTo() .......................................................................................................................................................... 630
lIsDir() .......................................................................................................................................................... 632
Listen() .......................................................................................................................................................... 633
lLFNMkDir() .......................................................................................................................................................... 635
lLFNRmDir() .......................................................................................................................................................... 636
lMDIiExist() .......................................................................................................................................................... 637
lMIDIOutOpen()
.......................................................................................................................................................... 638
lMkDir() .......................................................................................................................................................... 640
LoadAccelerators()
.......................................................................................................................................................... 641
LoadBitmap().......................................................................................................................................................... 643
LoadCursor().......................................................................................................................................................... 645
LoadIcon() .......................................................................................................................................................... 646
Loadlib32() .......................................................................................................................................................... 648
LoadLibrary().......................................................................................................................................................... 649
LoadMenu() .......................................................................................................................................................... 653
LoadResource()
.......................................................................................................................................................... 655
LoadString().......................................................................................................................................................... 656
LoadValue() .......................................................................................................................................................... 657
LocalCount().......................................................................................................................................................... 659
LocalShrink().......................................................................................................................................................... 659
LogEvent() .......................................................................................................................................................... 661
LogFile() .......................................................................................................................................................... 662
LogStack() .......................................................................................................................................................... 664
LogStatics() .......................................................................................................................................................... 665
lOpen() .......................................................................................................................................................... 666

© 2011 Infosys Argentina

X
SCRIPT Lims - Funciones Avanzadas Contenido XI

LPToDP() .......................................................................................................................................................... 668


lRMDir() .......................................................................................................................................................... 670
lSaveObject().......................................................................................................................................................... 671
LvInsertItem()
.......................................................................................................................................................... 672
lWRunning() .......................................................................................................................................................... 673
lXor() .......................................................................................................................................................... 674
LZCopyFile().......................................................................................................................................................... 675
13 M ................................................................................................................................... 677
MakeIntResource()
.......................................................................................................................................................... 677
MakeWin() .......................................................................................................................................................... 678
MapDialogRect()
.......................................................................................................................................................... 679
MAPIAddress().......................................................................................................................................................... 680
MAPIDeleteMail()
.......................................................................................................................................................... 681
MAPIFindNext()
.......................................................................................................................................................... 682
MAPILogoff().......................................................................................................................................................... 684
MAPILogon().......................................................................................................................................................... 684
MAPIReadMail()
.......................................................................................................................................................... 687
MAPIResolveName()
.......................................................................................................................................................... 688
MAPISendDocuments()
.......................................................................................................................................................... 689
MAPISendMail()
.......................................................................................................................................................... 690
MCIGetErrorString()
.......................................................................................................................................................... 693
MCISendCommand()
.......................................................................................................................................................... 700
MCISendString()
.......................................................................................................................................................... 701
MdiCtrlAdjust()
.......................................................................................................................................................... 703
MDIRecEdit().......................................................................................................................................................... 704
MeasureItem().......................................................................................................................................................... 706
MemoEdit() .......................................................................................................................................................... 708
MemStat() .......................................................................................................................................................... 710
MenuAddItem().......................................................................................................................................................... 712
MenuBegin().......................................................................................................................................................... 713
MenuDrawItem()
.......................................................................................................................................................... 715
MenuEnd() .......................................................................................................................................................... 717
MenuMeasureItem()
.......................................................................................................................................................... 718
MessageBeep().......................................................................................................................................................... 720
MessageBox() .......................................................................................................................................................... 721
MeterPaint() .......................................................................................................................................................... 725
MGetCreate() .......................................................................................................................................................... 728
MGetLine() .......................................................................................................................................................... 730
MGetReplace().......................................................................................................................................................... 732
MidiNoteOn().......................................................................................................................................................... 733
MidiNoteOff().......................................................................................................................................................... 735
MidiSetPatch()
.......................................................................................................................................................... 735
MimeExt() .......................................................................................................................................................... 736
ModifyMenu() .......................................................................................................................................................... 737
MoreHeap() .......................................................................................................................................................... 739
MoveCalendar()
.......................................................................................................................................................... 740
MoveFile() .......................................................................................................................................................... 742
MoveGet() .......................................................................................................................................................... 743
MoveTo() .......................................................................................................................................................... 744
MoveWindow() .......................................................................................................................................................... 746
MsgAbout() .......................................................................................................................................................... 747
MsgAlert() .......................................................................................................................................................... 750
MsgBeep() .......................................................................................................................................................... 751
MsgDate() .......................................................................................................................................................... 753

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XII

MsgGet() .......................................................................................................................................................... 755


MsgInfo() .......................................................................................................................................................... 756
MsgList() .......................................................................................................................................................... 758
MsgLogo() .......................................................................................................................................................... 760
MsgMeter() .......................................................................................................................................................... 762
MsgNoYes() .......................................................................................................................................................... 765
MsgPaint() .......................................................................................................................................................... 767
MsgRetryCancel()
.......................................................................................................................................................... 768
MsgRun() .......................................................................................................................................................... 770
MsgSound() .......................................................................................................................................................... 772
MsgStop() .......................................................................................................................................................... 774
MsgToolBar()
.......................................................................................................................................................... 776
MsgWait() .......................................................................................................................................................... 779
MsgYesNo() .......................................................................................................................................................... 781
14 N ................................................................................................................................... 783
nAnd() .......................................................................................................................................................... 783
nArgC() .......................................................................................................................................................... 785
nBmpColors() .......................................................................................................................................................... 787
nBmpHeight() .......................................................................................................................................................... 787
nBmpWidth().......................................................................................................................................................... 789
nColorToN() .......................................................................................................................................................... 790
nDbl2Flt() .......................................................................................................................................................... 792
nDDEGetErrorString()
.......................................................................................................................................................... 793
NDdeShareAdd()
.......................................................................................................................................................... 794
NDdeShareDel()
.......................................................................................................................................................... 795
NDdeShareSetInfo()
.......................................................................................................................................................... 795
nDlgBox() .......................................................................................................................................................... 797
NetSerialNumber()
.......................................................................................................................................................... 799
NextDlgTabItem()
.......................................................................................................................................................... 799
nExtMem() .......................................................................................................................................................... 801
nFileCrc() .......................................................................................................................................................... 802
nGetBackRgb().......................................................................................................................................................... 804
nGetFileFilter()
.......................................................................................................................................................... 805
nGetFilter32().......................................................................................................................................................... 807
nGetForeRGB().......................................................................................................................................................... 809
nHex() .......................................................................................................................................................... 810
nHiByte() .......................................................................................................................................................... 811
nHiWord() .......................................................................................................................................................... 813
nIcons() .......................................................................................................................................................... 814
nLoByte() .......................................................................................................................................................... 816
nLoWord() .......................................................................................................................................................... 818
nMakeLong().......................................................................................................................................................... 819
nMciOpen() .......................................................................................................................................................... 821
nMciPlay() .......................................................................................................................................................... 822
nMciWindow() .......................................................................................................................................................... 824
nMidiDevices()
.......................................................................................................................................................... 825
nMsgBox() .......................................................................................................................................................... 827
nNot() .......................................................................................................................................................... 829
nOr() .......................................................................................................................................................... 830
nPtrWord() .......................................................................................................................................................... 832
nRandom() .......................................................................................................................................................... 833
nRGB() .......................................................................................................................................................... 835
nRGBBlue() .......................................................................................................................................................... 836
nRGBGreen().......................................................................................................................................................... 838

© 2011 Infosys Argentina

XII
SCRIPT Lims - Funciones Avanzadas Contenido XIII

nRGBRed() .......................................................................................................................................................... 839


nSerialA() .......................................................................................................................................................... 840
nSerialHD() .......................................................................................................................................................... 841
nStatics() .......................................................................................................................................................... 842
nStrCrc() .......................................................................................................................................................... 842
nStrHash() .......................................................................................................................................................... 844
nTcwRow() .......................................................................................................................................................... 846
nToBin() .......................................................................................................................................................... 847
NtxPos() .......................................................................................................................................................... 848
nTxtLines() .......................................................................................................................................................... 850
nWindows() .......................................................................................................................................................... 851
nWndChrHeight()
.......................................................................................................................................................... 853
nWRow() .......................................................................................................................................................... 854
nWRows() .......................................................................................................................................................... 856
nXOr() .......................................................................................................................................................... 858
15 O ................................................................................................................................... 859
Oclone() .......................................................................................................................................................... 859
OdbcDsnEntries()
.......................................................................................................................................................... 860
OemToAnsi().......................................................................................................................................................... 861
OpenClipboard()
.......................................................................................................................................................... 863
OpenComm().......................................................................................................................................................... 864
ORead() .......................................................................................................................................................... 867
OSend() .......................................................................................................................................................... 869
OutportByte()
.......................................................................................................................................................... 871
OutportWord()
.......................................................................................................................................................... 872
OutpuDebugString()
.......................................................................................................................................................... 874
oWndFromhWnd()
.......................................................................................................................................................... 875
16 P ................................................................................................................................... 876
PageBegin() .......................................................................................................................................................... 876
PageEnd() .......................................................................................................................................................... 877
Paint3D() .......................................................................................................................................................... 878
PalBmpDraw() .......................................................................................................................................................... 879
PalBmpLoad() .......................................................................................................................................................... 882
PalBmpRead() .......................................................................................................................................................... 883
PalBmpRealize()
.......................................................................................................................................................... 883
PalBtnPaint().......................................................................................................................................................... 884
ParamCount() .......................................................................................................................................................... 885
pBmpColors() .......................................................................................................................................................... 887
pBmpHeigh().......................................................................................................................................................... 888
pBmpWidth().......................................................................................................................................................... 890
PeekByte() .......................................................................................................................................................... 891
PeekMessage().......................................................................................................................................................... 893
PeekWord() .......................................................................................................................................................... 894
Pie() .......................................................................................................................................................... 896
PlayEnhMetaFile()
.......................................................................................................................................................... 899
PlayMetafile()
.......................................................................................................................................................... 899
PokeByte() .......................................................................................................................................................... 901
PokeWord() .......................................................................................................................................................... 902
PolyPolygon().......................................................................................................................................................... 904
PostMessage().......................................................................................................................................................... 905
PostQuitMessage()
.......................................................................................................................................................... 907
PrintBegin() .......................................................................................................................................................... 908
PrintEnd() .......................................................................................................................................................... 910

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XIV

PrinterEsc() .......................................................................................................................................................... 911


PrinterIni() .......................................................................................................................................................... 912
PrinterSetup().......................................................................................................................................................... 913
PrnBinSource().......................................................................................................................................................... 915
PrnDuplex() .......................................................................................................................................................... 916
PrnGetCopies().......................................................................................................................................................... 917
PrnGetDriver().......................................................................................................................................................... 918
PrnGetName() .......................................................................................................................................................... 919
PrnGetOrientation()
.......................................................................................................................................................... 920
PrnGetPages() .......................................................................................................................................................... 921
PrnGetPort().......................................................................................................................................................... 922
PrnGetSize().......................................................................................................................................................... 923
PrnLandscape().......................................................................................................................................................... 924
PrnOffset() .......................................................................................................................................................... 926
PrnPortrait() .......................................................................................................................................................... 927
PrnSetCollate()
.......................................................................................................................................................... 928
PrnSetCopies().......................................................................................................................................................... 928
PrnSetPage().......................................................................................................................................................... 930
PrnSetSize() .......................................................................................................................................................... 932
PropSheet() .......................................................................................................................................................... 933
17 Q ................................................................................................................................... 0
18 R ................................................................................................................................... 934
RaConst() .......................................................................................................................................................... 934
Radial() .......................................................................................................................................................... 936
RaEnumConnections()
.......................................................................................................................................................... 937
RaEnumEntries()
.......................................................................................................................................................... 938
RaGetConst().......................................................................................................................................................... 940
RaGetError() .......................................................................................................................................................... 943
RaHangUp() .......................................................................................................................................................... 944
RasDialDlg() .......................................................................................................................................................... 946
Ras_dialEntry()
.......................................................................................................................................................... 946
RddEvent() .......................................................................................................................................................... 948
ReadBitmap().......................................................................................................................................................... 950
ReadComm().......................................................................................................................................................... 952
ReadEven() .......................................................................................................................................................... 953
ReadVar() .......................................................................................................................................................... 955
RealizePalette()
.......................................................................................................................................................... 956
Rectangle() .......................................................................................................................................................... 958
RectDotted().......................................................................................................................................................... 960
Recv() .......................................................................................................................................................... 961
RegCloseKey().......................................................................................................................................................... 963
RegCreateKey()
.......................................................................................................................................................... 965
RegDeleteKey()
.......................................................................................................................................................... 967
RegEnumKey() .......................................................................................................................................................... 969
RegisterClass()
.......................................................................................................................................................... 970
RegOpenKey() .......................................................................................................................................................... 973
RegQueryValue()
.......................................................................................................................................................... 976
RegSetValue().......................................................................................................................................................... 979
ReleaseCapture()
.......................................................................................................................................................... 980
ReleaseDC() .......................................................................................................................................................... 982
RemoveFont() .......................................................................................................................................................... 984
RemoveMenu() .......................................................................................................................................................... 986
RemoveProp() .......................................................................................................................................................... 987

© 2011 Infosys Argentina

XIV
SCRIPT Lims - Funciones Avanzadas Contenido XV

Report() .......................................................................................................................................................... 989


ResetDC() .......................................................................................................................................................... 991
ResourceFree()
.......................................................................................................................................................... 992
RestoreDC() .......................................................................................................................................................... 994
RestProc() .......................................................................................................................................................... 995
RLCheck() .......................................................................................................................................................... 997
RLNew() .......................................................................................................................................................... 998
RLQuery() .......................................................................................................................................................... 999
RLSet() .......................................................................................................................................................... 999
RoundRect().......................................................................................................................................................... 1000
RPreview() .......................................................................................................................................................... 1001
RptAddColumn()
.......................................................................................................................................................... 1002
RptAddGroup()
.......................................................................................................................................................... 1004
RptBegin() .......................................................................................................................................................... 1006
RptEnd() .......................................................................................................................................................... 1009
RTFToGTF().......................................................................................................................................................... 1010
19 S ................................................................................................................................... 1011
SaveDC() .......................................................................................................................................................... 1011
Say3D() .......................................................................................................................................................... 1012
Scan() .......................................................................................................................................................... 1014
ScreenToClient()
.......................................................................................................................................................... 1015
ScrollWindow()
.......................................................................................................................................................... 1018
ScrResolution()
.......................................................................................................................................................... 1019
SelectObject()
.......................................................................................................................................................... 1020
SelectPalette()
.......................................................................................................................................................... 1022
SendBinary()
.......................................................................................................................................................... 1023
SendMessage()
.......................................................................................................................................................... 1025
ServerIP() .......................................................................................................................................................... 1027
Set3dLook().......................................................................................................................................................... 1028
SetAccTable()
.......................................................................................................................................................... 1029
SetActiveWindow()
.......................................................................................................................................................... 1030
SetBkColor()
.......................................................................................................................................................... 1031
SetBkMode().......................................................................................................................................................... 1033
SetBlackPen()
.......................................................................................................................................................... 1035
SetBrushOrg()
.......................................................................................................................................................... 1036
SetCapture()
.......................................................................................................................................................... 1038
SetCaretPos()
.......................................................................................................................................................... 1039
SetClassWord()
.......................................................................................................................................................... 1041
SetClipboardData()
.......................................................................................................................................................... 1043
SetClpData().......................................................................................................................................................... 1045
SetCommState()
.......................................................................................................................................................... 1048
SetCurdrive()
.......................................................................................................................................................... 1050
SetCursor().......................................................................................................................................................... 1051
SetCursorPos()
.......................................................................................................................................................... 1053
SetDate() .......................................................................................................................................................... 1054
SetDatePick()
.......................................................................................................................................................... 1055
SetDeskWallPaper()
.......................................................................................................................................................... 1056
SetDropInfo()
.......................................................................................................................................................... 1058
SetFClipData()
.......................................................................................................................................................... 1060
SetFocus() .......................................................................................................................................................... 1061
SetForegroundWindow()
.......................................................................................................................................................... 1062
SetFTime() .......................................................................................................................................................... 1063
SetGridSize()
.......................................................................................................................................................... 1065
SetHandleCount()
.......................................................................................................................................................... 1066

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XVI

SetHelpFile()
.......................................................................................................................................................... 1068
SetIdleAction()
.......................................................................................................................................................... 1070
SetLayeredWindowAttributes()
.......................................................................................................................................................... 1071
SetMapMode().......................................................................................................................................................... 1072
SetMenu() .......................................................................................................................................................... 1075
SetMinMax() .......................................................................................................................................................... 1076
SetMultiple()
.......................................................................................................................................................... 1078
SetParent() .......................................................................................................................................................... 1079
SetPixel() .......................................................................................................................................................... 1081
SetPolyFillMode()
.......................................................................................................................................................... 1083
SetPrintDefault()
.......................................................................................................................................................... 1084
SetProp() .......................................................................................................................................................... 1085
SetResources()
.......................................................................................................................................................... 1086
SetScrollInfo()
.......................................................................................................................................................... 1088
SetScrollPos()
.......................................................................................................................................................... 1088
SetScrollRange()
.......................................................................................................................................................... 1089
SetSockOpt().......................................................................................................................................................... 1090
SetTaskManager()
.......................................................................................................................................................... 1092
SetTextAlign()
.......................................................................................................................................................... 1092
SetTextColor()
.......................................................................................................................................................... 1096
SetTextJustification()
.......................................................................................................................................................... 1098
SetTime() .......................................................................................................................................................... 1099
SetTimer() .......................................................................................................................................................... 1101
SetViewOrg().......................................................................................................................................................... 1103
SetViewPortExt()
.......................................................................................................................................................... 1104
SetWhitePen()
.......................................................................................................................................................... 1107
SetWin95Look()
.......................................................................................................................................................... 1108
SetWindowExt()
.......................................................................................................................................................... 1109
SetWindowLong()
.......................................................................................................................................................... 1110
SetWindowOrg()
.......................................................................................................................................................... 1111
SetWindowPos()
.......................................................................................................................................................... 1112
SetWindowText()
.......................................................................................................................................................... 1114
SetWindowWord()
.......................................................................................................................................................... 1116
SetWndDefault()
.......................................................................................................................................................... 1117
Sfn2Lfn() .......................................................................................................................................................... 1118
ShellAbout().......................................................................................................................................................... 1119
ShellExecute()
.......................................................................................................................................................... 1121
ShowCaret() .......................................................................................................................................................... 1123
ShowCursor().......................................................................................................................................................... 1125
ShowWindow().......................................................................................................................................................... 1126
Sin() .......................................................................................................................................................... 1128
SndPlayRes().......................................................................................................................................................... 1129
SndPlaySound()
.......................................................................................................................................................... 1132
Socket() .......................................................................................................................................................... 1134
SocketSelect()
.......................................................................................................................................................... 1136
SocketSend().......................................................................................................................................................... 1137
SpoolFile() .......................................................................................................................................................... 1138
SQLAllocConnect()
.......................................................................................................................................................... 1139
SQLAllocEnv()
.......................................................................................................................................................... 1140
SQLAllocStmt()
.......................................................................................................................................................... 1141
SQLCancel().......................................................................................................................................................... 1141
SQLCol() .......................................................................................................................................................... 1142
SQLColumns().......................................................................................................................................................... 1143
SQLCommit() .......................................................................................................................................................... 1144

© 2011 Infosys Argentina

XVI
SCRIPT Lims - Funciones Avanzadas Contenido XVII

SQLConnect().......................................................................................................................................................... 1144
SQLDesc32() .......................................................................................................................................................... 1145
SQLDescribeCol()
.......................................................................................................................................................... 1146
SQLDisconnect()
.......................................................................................................................................................... 1147
SQLDriverConnect()
.......................................................................................................................................................... 1148
SQLDrvC32() .......................................................................................................................................................... 1149
SQLError() .......................................................................................................................................................... 1150
SQLExecDirect()
.......................................................................................................................................................... 1151
SQLExecute().......................................................................................................................................................... 1152
SQLExtendedFetch()
.......................................................................................................................................................... 1152
SQLFetch() .......................................................................................................................................................... 1153
SQLFile() .......................................................................................................................................................... 1154
SQLFreeConnect()
.......................................................................................................................................................... 1155
SQLFreeEnv().......................................................................................................................................................... 1155
SQLFreeStmt()
.......................................................................................................................................................... 1156
SQLGetConnectOption()
.......................................................................................................................................................... 1157
SQLGetCurName()
.......................................................................................................................................................... 1158
SQLGetCursorName()
.......................................................................................................................................................... 1158
SQLGetD32() .......................................................................................................................................................... 1159
SQLGetData().......................................................................................................................................................... 1160
SQLGetDiagRec()
.......................................................................................................................................................... 1161
SQLGetIn32().......................................................................................................................................................... 1162
SQLGetInfo().......................................................................................................................................................... 1163
SQLGetStmtOption()
.......................................................................................................................................................... 1163
SQLGetTextData()
.......................................................................................................................................................... 1164
SQLIndex() .......................................................................................................................................................... 1165
SQLNumResultCols()
.......................................................................................................................................................... 1166
SQLParamData()
.......................................................................................................................................................... 1167
SQLPrep32() .......................................................................................................................................................... 1167
SQLPrepare().......................................................................................................................................................... 1168
SQLPrimaryKeys()
.......................................................................................................................................................... 1169
SQLPutData().......................................................................................................................................................... 1170
SQLRollBack()
.......................................................................................................................................................... 1170
SQLRowCount()
.......................................................................................................................................................... 1171
SQLSCol() .......................................................................................................................................................... 1172
SQLSetConnectOption()
.......................................................................................................................................................... 1173
SQLSetCurName()
.......................................................................................................................................................... 1174
SQLSetCursorName()
.......................................................................................................................................................... 1174
SQLSetParam()
.......................................................................................................................................................... 1175
SQLSetPos() .......................................................................................................................................................... 1176
SQLSetStmt().......................................................................................................................................................... 1177
SQLStatistics()
.......................................................................................................................................................... 1178
SQLTables().......................................................................................................................................................... 1179
SQLTransact()
.......................................................................................................................................................... 1179
StartDoc() .......................................................................................................................................................... 1180
StartMonitor()
.......................................................................................................................................................... 1181
StartPage() .......................................................................................................................................................... 1182
StartPlayback()
.......................................................................................................................................................... 1184
StartRecord()
.......................................................................................................................................................... 1185
SToD() .......................................................................................................................................................... 1186
StopPlayBack()
.......................................................................................................................................................... 1187
StopRecord().......................................................................................................................................................... 1188
StopUntil() .......................................................................................................................................................... 1189
StrByte() .......................................................................................................................................................... 1190

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XVIII

StrCapFirst()
.......................................................................................................................................................... 1191
StrChar() .......................................................................................................................................................... 1192
StrCharCount()
.......................................................................................................................................................... 1194
StrCpy() .......................................................................................................................................................... 1194
StrPtr() .......................................................................................................................................................... 1196
StrToken() .......................................................................................................................................................... 1196
Str2Hex() .......................................................................................................................................................... 1198
SymName().......................................................................................................................................................... 1198
SymStat() .......................................................................................................................................................... 1200
SymTblAt() .......................................................................................................................................................... 1201
SymTblLen().......................................................................................................................................................... 1202
SysRefresh()
.......................................................................................................................................................... 1204
SysTime() .......................................................................................................................................................... 1206
SysWait() .......................................................................................................................................................... 1207
20 T ................................................................................................................................... 1208
TabCtrlAdd().......................................................................................................................................................... 1208
TabCtrl_AdjustRect()
.......................................................................................................................................................... 1210
TabCtrl_GetCurSel()
.......................................................................................................................................................... 1210
TabCtrl_HitTest()
.......................................................................................................................................................... 1211
TabCtrl_SetCurSel()
.......................................................................................................................................................... 1212
TabDelAllItems()
.......................................................................................................................................................... 1212
TabsPaint().......................................................................................................................................................... 1213
Tang() .......................................................................................................................................................... 1215
TaskAddIcon()
.......................................................................................................................................................... 1216
TaskChangeIcon()
.......................................................................................................................................................... 1216
TaskDelIcon()
.......................................................................................................................................................... 1217
TCBrwSrol().......................................................................................................................................................... 1218
TcDrawCell().......................................................................................................................................................... 1219
TerminateApp()
.......................................................................................................................................................... 1222
TextOut() .......................................................................................................................................................... 1223
ThisStruct().......................................................................................................................................................... 1225
Time() .......................................................................................................................................................... 1226
TimeFromStart()
.......................................................................................................................................................... 1228
TimerCount().......................................................................................................................................................... 1228
TimerEvent().......................................................................................................................................................... 1230
TrackPopUpMenu()
.......................................................................................................................................................... 1231
TreeBegin().......................................................................................................................................................... 1233
TreeEnd() .......................................................................................................................................................... 1235
TvDelAllItems()
.......................................................................................................................................................... 1237
TvDeleteItem()
.......................................................................................................................................................... 1238
TvGetSelected()
.......................................................................................................................................................... 1238
TvGetSelText()
.......................................................................................................................................................... 1239
TvHitTest() .......................................................................................................................................................... 1240
TvInsertItem()
.......................................................................................................................................................... 1240
TvSelect() .......................................................................................................................................................... 1241
TvSetImageList()
.......................................................................................................................................................... 1242
TxtToGTF() .......................................................................................................................................................... 1243
21 U ................................................................................................................................... 1243
uCharToVal().......................................................................................................................................................... 1243
uLoadStruct()
.......................................................................................................................................................... 1245
UnEscape() .......................................................................................................................................................... 1247
UnZipFile() .......................................................................................................................................................... 1248
UpdateWindow()
.......................................................................................................................................................... 1249

© 2011 Infosys Argentina

XVIII
SCRIPT Lims - Funciones Avanzadas Contenido XIX

UToS() .......................................................................................................................................................... 1251


uValBlack() .......................................................................................................................................................... 1252
22 V ................................................................................................................................... 1253
VirtualRdd().......................................................................................................................................................... 1253
23 W ................................................................................................................................... 1254
WaitMessage()
.......................................................................................................................................................... 1254
WaitRun() .......................................................................................................................................................... 1255
WaitSeconds()
.......................................................................................................................................................... 1259
WBrwLine().......................................................................................................................................................... 1259
WBrwPane().......................................................................................................................................................... 1262
WBrwScroll()
.......................................................................................................................................................... 1264
WBrwSelBox()
.......................................................................................................................................................... 1266
WideToAnsi()
.......................................................................................................................................................... 1268
WidthFLine()
.......................................................................................................................................................... 1269
WindowFromPoint()
.......................................................................................................................................................... 1270
WinExec() .......................................................................................................................................................... 1272
WinHelp() .......................................................................................................................................................... 1275
WinUser() .......................................................................................................................................................... 1277
WndAdjBottom()
.......................................................................................................................................................... 1278
WndAdjClient()
.......................................................................................................................................................... 1279
WndAdjLeft()
.......................................................................................................................................................... 1280
WndAdjRight()
.......................................................................................................................................................... 1282
WndAdjTop().......................................................................................................................................................... 1283
WndBitmap().......................................................................................................................................................... 1284
WndBottom().......................................................................................................................................................... 1285
WndBox() .......................................................................................................................................................... 1286
WndBoxIn().......................................................................................................................................................... 1288
WndBoxRaised()
.......................................................................................................................................................... 1289
WndBrush().......................................................................................................................................................... 1291
WndCenter().......................................................................................................................................................... 1292
WndCopy() .......................................................................................................................................................... 1294
WndHasScrolls()
.......................................................................................................................................................... 1295
WndHeight().......................................................................................................................................................... 1296
WndHlineRaised()
.......................................................................................................................................................... 1298
WndHRaised()
.......................................................................................................................................................... 1299
WndInset() .......................................................................................................................................................... 1300
WndLeft() .......................................................................................................................................................... 1301
WndMain() .......................................................................................................................................................... 1303
WndParents()
.......................................................................................................................................................... 1304
WndPrint() .......................................................................................................................................................... 1304
WndRaised().......................................................................................................................................................... 1306
WndSetSize()
.......................................................................................................................................................... 1308
WndTop() .......................................................................................................................................................... 1309
WndVLineRaised()
.......................................................................................................................................................... 1310
WndVRaised()
.......................................................................................................................................................... 1312
WndWith() .......................................................................................................................................................... 1313
WNetAddConnection()
.......................................................................................................................................................... 1314
WNetBrowse()
.......................................................................................................................................................... 1316
WNetConnetDialog()
.......................................................................................................................................................... 1318
WNetDelConnection()
.......................................................................................................................................................... 1319
WNetDisconnectDialog()
.......................................................................................................................................................... 1320
WNetError().......................................................................................................................................................... 1321
WNetGetConnection()
.......................................................................................................................................................... 1323

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XX

WNetGetErrorText()
.......................................................................................................................................................... 1324
WNetGetUser()
.......................................................................................................................................................... 1325
WorkSheet().......................................................................................................................................................... 1326
WQOut() .......................................................................................................................................................... 1328
WriteComm().......................................................................................................................................................... 1329
WritePProString()
.......................................................................................................................................................... 1331
WriteProfString()
.......................................................................................................................................................... 1333
WSAAsyncSelect()
.......................................................................................................................................................... 1334
WSACleanUp()
.......................................................................................................................................................... 1336
WSAGetLastError()
.......................................................................................................................................................... 1337
WSAStartUp()
.......................................................................................................................................................... 1338
WSay() .......................................................................................................................................................... 1339
WSayRect() .......................................................................................................................................................... 1341
WScroll() .......................................................................................................................................................... 1343
24 X ................................................................................................................................... 1345
xPadC() .......................................................................................................................................................... 1345
xPadL() .......................................................................................................................................................... 1347
xPadR() .......................................................................................................................................................... 1349
25 Y ................................................................................................................................... 0
26 Z ................................................................................................................................... 1350
ZipBlock() .......................................................................................................................................................... 1350
ZipFile() .......................................................................................................................................................... 1352
ZipMsg() .......................................................................................................................................................... 1353
ZipName() .......................................................................................................................................................... 1354
ZipSize() .......................................................................................................................................................... 1356
ZiType() .......................................................................................................................................................... 1357

Parte III By Cathegory 1362


1 Accelerators
................................................................................................................................... 1362
LoadAccelerators()
.......................................................................................................................................................... 1362
SetAcctable()
.......................................................................................................................................................... 1363
2 Arrays
................................................................................................................................... 1364
AAt() .......................................................................................................................................................... 1364
ARead() .......................................................................................................................................................... 1364
ASave() .......................................................................................................................................................... 1365
ASend() .......................................................................................................................................................... 1366
3 AVIs................................................................................................................................... 1368
AnimOpen().......................................................................................................................................................... 1368
AnimOpenEx()
.......................................................................................................................................................... 1368
AnimPlay() .......................................................................................................................................................... 1369
4 Bitmaps
................................................................................................................................... 1370
CreateBmpCursor()
.......................................................................................................................................................... 1370
DibFromBitmap()
.......................................................................................................................................................... 1370
FWBitmap().......................................................................................................................................................... 1372
nBmpColors()
.......................................................................................................................................................... 1374
nBmpHeight()
.......................................................................................................................................................... 1374
nBmpWidth()
.......................................................................................................................................................... 1376
PalBmpDraw()
.......................................................................................................................................................... 1377
PalBmpLoad()
.......................................................................................................................................................... 1379
PalBmpRead()
.......................................................................................................................................................... 1380
PalBmpRealize()
.......................................................................................................................................................... 1381

© 2011 Infosys Argentina

XX
SCRIPT Lims - Funciones Avanzadas Contenido XXI

PalBtnPain().......................................................................................................................................................... 1381
pBmpColors().......................................................................................................................................................... 1383
pBmpHeigh() .......................................................................................................................................................... 1384
pBmpWidth() .......................................................................................................................................................... 1385
ReadBitmap().......................................................................................................................................................... 1387
RealizePalette()
.......................................................................................................................................................... 1389
SelectPalette()
.......................................................................................................................................................... 1390
WndBitmap() .......................................................................................................................................................... 1391
5 Browses
................................................................................................................................... 1393
aWBrwRowDim()
.......................................................................................................................................................... 1393
Browse() .......................................................................................................................................................... 1393
6 Brushes
................................................................................................................................... 1395
CreateHatch()
.......................................................................................................................................................... 1395
CreatePattern()
.......................................................................................................................................................... 1397
CreateSolidBrush()
.......................................................................................................................................................... 1398
DelwndBrus()
.......................................................................................................................................................... 1399
FWBrushes().......................................................................................................................................................... 1400
SetBrushOrg()
.......................................................................................................................................................... 1402
WndBrush().......................................................................................................................................................... 1404
7 Clipboard
................................................................................................................................... 1405
CloseClipboard()
.......................................................................................................................................................... 1405
EmptyClipboard()
.......................................................................................................................................................... 1406
GetClpData()
.......................................................................................................................................................... 1408
OpenClipboard()
.......................................................................................................................................................... 1410
SetClipboardData()
.......................................................................................................................................................... 1412
SetClpData().......................................................................................................................................................... 1414
8 Color
................................................................................................................................... 1416
Getbkcolor()
.......................................................................................................................................................... 1416
GetSysColor()
.......................................................................................................................................................... 1417
nColorToN().......................................................................................................................................................... 1419
nGetBackRgb()
.......................................................................................................................................................... 1421
nGetForeRGB()
.......................................................................................................................................................... 1422
nRGB() .......................................................................................................................................................... 1423
nRGBBlue() .......................................................................................................................................................... 1425
nRGBGreen().......................................................................................................................................................... 1426
nRGBRed() .......................................................................................................................................................... 1428
SetBkColor()
.......................................................................................................................................................... 1429
SetTextColor()
.......................................................................................................................................................... 1431
9 Coordinates
...................................................................................................................................
management 1433
ClientToScreen()
.......................................................................................................................................................... 1433
DPToLP() .......................................................................................................................................................... 1434
GetPixel() .......................................................................................................................................................... 1436
GetPromptRect()
.......................................................................................................................................................... 1437
LPToDP() .......................................................................................................................................................... 1438
ScreenToClient()
.......................................................................................................................................................... 1440
10 Communications
................................................................................................................................... 1442
Bindtoport().......................................................................................................................................................... 1442
BuildCommDCB()
.......................................................................................................................................................... 1443
CloseComm() .......................................................................................................................................................... 1444
EnableComm().......................................................................................................................................................... 1446
EscapeComm().......................................................................................................................................................... 1447
FlushComm() .......................................................................................................................................................... 1449

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXII

GetCommError()
.......................................................................................................................................................... 1451
InportByte().......................................................................................................................................................... 1453
InportWord().......................................................................................................................................................... 1454
OpenComm() .......................................................................................................................................................... 1456
OutportByte()
.......................................................................................................................................................... 1458
OutportWord()
.......................................................................................................................................................... 1460
ReadComm() .......................................................................................................................................................... 1461
SetCommState()
.......................................................................................................................................................... 1463
WriteComm() .......................................................................................................................................................... 1465
11 Carets
................................................................................................................................... 1466
CaretFLine()
.......................................................................................................................................................... 1466
DestroyCaret()
.......................................................................................................................................................... 1467
12 Cursors
................................................................................................................................... 1468
Cursor() .......................................................................................................................................................... 1468
CursorArrow()
.......................................................................................................................................................... 1469
CursorCatch()
.......................................................................................................................................................... 1470
CursorDrag()
.......................................................................................................................................................... 1471
CursorHand()
.......................................................................................................................................................... 1472
CursorIbeam()
.......................................................................................................................................................... 1473
CursorNS() .......................................................................................................................................................... 1475
CursorSize()
.......................................................................................................................................................... 1476
CursorStop()
.......................................................................................................................................................... 1477
CursorWait()
.......................................................................................................................................................... 1478
CursorWE().......................................................................................................................................................... 1479
DestroyCursor()
.......................................................................................................................................................... 1481
GetCursorDrag()
.......................................................................................................................................................... 1482
GetCursorHand()
.......................................................................................................................................................... 1483
GetCursorPos()
.......................................................................................................................................................... 1484
GetCursorStop()
.......................................................................................................................................................... 1485
SetCursor().......................................................................................................................................................... 1485
SetCursorPos()
.......................................................................................................................................................... 1487
ShowCursor()
.......................................................................................................................................................... 1488
13 Database
...................................................................................................................................
management 1489
cGetNewAlias()
.......................................................................................................................................................... 1489
DbClearInd().......................................................................................................................................................... 1490
DbClearRel().......................................................................................................................................................... 1491
DbCloseAre().......................................................................................................................................................... 1492
DbCommital().......................................................................................................................................................... 1493
DbCopyStru().......................................................................................................................................................... 1494
DbCreteIn().......................................................................................................................................................... 1496
DbfCdx() .......................................................................................................................................................... 1497
DbfCdxAx() .......................................................................................................................................................... 1498
DbfNtx() .......................................................................................................................................................... 1500
DbPack() .......................................................................................................................................................... 1501
DbPx() .......................................................................................................................................................... 1502
DbRLockLis().......................................................................................................................................................... 1503
DbSelectAr().......................................................................................................................................................... 1505
DbSetDefa().......................................................................................................................................................... 1506
DbSetDrive().......................................................................................................................................................... 1507
DbSetFilte().......................................................................................................................................................... 1508
DbSetRelat().......................................................................................................................................................... 1510
DbUnlockAl().......................................................................................................................................................... 1511
DbZap() .......................................................................................................................................................... 1512

© 2011 Infosys Argentina

XXII
SCRIPT Lims - Funciones Avanzadas Contenido XXIII

DelDbfMdx().......................................................................................................................................................... 1513
DupRecord() .......................................................................................................................................................... 1515
Field() .......................................................................................................................................................... 1517
FieldType() .......................................................................................................................................................... 1518
FieldWbloc().......................................................................................................................................................... 1519
GetOrdNames()
.......................................................................................................................................................... 1520
VirtualRdd().......................................................................................................................................................... 1521
14 Date/Time
................................................................................................................................... 1523
GetDatePick()
.......................................................................................................................................................... 1523
GetFTime() .......................................................................................................................................................... 1523
SetDate() .......................................................................................................................................................... 1525
SetDatePick()
.......................................................................................................................................................... 1526
SetFTime() .......................................................................................................................................................... 1527
SetTime() .......................................................................................................................................................... 1529
MsgDate() .......................................................................................................................................................... 1530
SToD() .......................................................................................................................................................... 1532
SysTime() .......................................................................................................................................................... 1533
Time() .......................................................................................................................................................... 1534
15 DDE................................................................................................................................... 1535
DDEAccessData()
.......................................................................................................................................................... 1535
DDEAck() .......................................................................................................................................................... 1537
DDEclientt().......................................................................................................................................................... 1539
DDEcmpstri() .......................................................................................................................................................... 1540
DDECommand() .......................................................................................................................................................... 1541
DDEConnect() .......................................................................................................................................................... 1543
DDECreateDataHandle()
.......................................................................................................................................................... 1544
DDECreateStringHandle()
.......................................................................................................................................................... 1545
DDEdisconn() .......................................................................................................................................................... 1546
DDEfreedataHandle()
.......................................................................................................................................................... 1547
DDEfreestr().......................................................................................................................................................... 1548
DDEGetCommand()
.......................................................................................................................................................... 1549
DDEGetData() .......................................................................................................................................................... 1551
DDEGetLastError()
.......................................................................................................................................................... 1552
DDEinitial() .......................................................................................................................................................... 1553
DDEnameser() .......................................................................................................................................................... 1554
DDEqueryst() .......................................................................................................................................................... 1556
DDEServer().......................................................................................................................................................... 1557
DDETerminate()
.......................................................................................................................................................... 1559
DDEuniniti().......................................................................................................................................................... 1561
nDDEGetErrorString()
.......................................................................................................................................................... 1562
NDdeShareAdd()
.......................................................................................................................................................... 1563
NDdeShareDel()
.......................................................................................................................................................... 1564
NDdeShareSetInfo()
.......................................................................................................................................................... 1564
16 Debugging
...................................................................................................................................
facilities 1566
LocalCount().......................................................................................................................................................... 1566
LogEvent() .......................................................................................................................................................... 1567
LogFile() .......................................................................................................................................................... 1568
LogStack() .......................................................................................................................................................... 1570
LogStatics().......................................................................................................................................................... 1571
OutpuDebugString()
.......................................................................................................................................................... 1572
StartMonitor()
.......................................................................................................................................................... 1574
17 Device
...................................................................................................................................
contexts 1575
GetViewportOrgEx()
.......................................................................................................................................................... 1575

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXIV

GetWindowDC()
.......................................................................................................................................................... 1576
GetWindowOrgEx()
.......................................................................................................................................................... 1577
SetWindowExt()
.......................................................................................................................................................... 1578
SetWindowOrg()
.......................................................................................................................................................... 1578
18 Dialog
...................................................................................................................................
boxes 1579
cDlg2Chr() .......................................................................................................................................................... 1579
CreateDlgIndirect()
.......................................................................................................................................................... 1581
DialogBoxIndirect()
.......................................................................................................................................................... 1582
EndDialog() .......................................................................................................................................................... 1584
GetDialogBaseUnits()
.......................................................................................................................................................... 1586
GetDlgBase().......................................................................................................................................................... 1587
GetDlgItem().......................................................................................................................................................... 1588
MapDialogRect()
.......................................................................................................................................................... 1590
nDlgBox() .......................................................................................................................................................... 1591
NextDlgTabItem()
.......................................................................................................................................................... 1593
19 Directories
...................................................................................................................................
maintenance 1594
aDrives() .......................................................................................................................................................... 1594
aFindFile() .......................................................................................................................................................... 1595
cGetDir() .......................................................................................................................................................... 1597
CurDrive() .......................................................................................................................................................... 1598
DiskChange().......................................................................................................................................................... 1599
Getcurdir() .......................................................................................................................................................... 1599
GetSysDir() .......................................................................................................................................................... 1601
GetWinDir().......................................................................................................................................................... 1602
lChDir() .......................................................................................................................................................... 1603
lIsDir() .......................................................................................................................................................... 1605
lLFNMkDir().......................................................................................................................................................... 1606
lLFNRmDir().......................................................................................................................................................... 1608
lMkDir() .......................................................................................................................................................... 1609
lRMDir() .......................................................................................................................................................... 1610
nSerialA() .......................................................................................................................................................... 1611
nSerialHD() .......................................................................................................................................................... 1613
SetCurdrive()
.......................................................................................................................................................... 1613
Sfn2Lfn() .......................................................................................................................................................... 1615
20 DLLs
................................................................................................................................... 1616
CallDll() .......................................................................................................................................................... 1616
Calldll32() .......................................................................................................................................................... 1617
Freelib32() .......................................................................................................................................................... 1618
FreeLibrary()
.......................................................................................................................................................... 1619
21 Drag...................................................................................................................................
& Drop 1621
DragAccept().......................................................................................................................................................... 1621
Dragfinish().......................................................................................................................................................... 1622
DragQueryFiles()
.......................................................................................................................................................... 1624
DragqueryPoint()
.......................................................................................................................................................... 1624
GetDropInfo()
.......................................................................................................................................................... 1625
SetDropInfo()
.......................................................................................................................................................... 1627
22 Drawing
................................................................................................................................... 1629
Arc() .......................................................................................................................................................... 1629
Bitblt() .......................................................................................................................................................... 1631
Chord() .......................................................................................................................................................... 1633
DibDraw() .......................................................................................................................................................... 1634
DibHeight() .......................................................................................................................................................... 1636

© 2011 Infosys Argentina

XXIV
SCRIPT Lims - Funciones Avanzadas Contenido XXV

DibPalette().......................................................................................................................................................... 1637
DibRead() .......................................................................................................................................................... 1639
DibWidth() .......................................................................................................................................................... 1641
DibWrite() .......................................................................................................................................................... 1642
Ditbackgrd().......................................................................................................................................................... 1644
DrawBitmap().......................................................................................................................................................... 1646
DrawFGetLine()
.......................................................................................................................................................... 1648
Drawfocusr().......................................................................................................................................................... 1649
DrawGrayed().......................................................................................................................................................... 1651
Drawgrid() .......................................................................................................................................................... 1652
DrawIcon() .......................................................................................................................................................... 1653
DrawIconFocus()
.......................................................................................................................................................... 1655
DrawMasked().......................................................................................................................................................... 1656
DrawMenuBa().......................................................................................................................................................... 1658
DrawMsgItem()
.......................................................................................................................................................... 1659
DrawSelector()
.......................................................................................................................................................... 1661
DrawSlider().......................................................................................................................................................... 1662
DrawTextEx().......................................................................................................................................................... 1663
Ellipse() .......................................................................................................................................................... 1665
ExtDrawIcon()
.......................................................................................................................................................... 1666
FillRect() .......................................................................................................................................................... 1667
FloodFill() .......................................................................................................................................................... 1669
FoldPaint() .......................................................................................................................................................... 1670
FrameDot() .......................................................................................................................................................... 1671
FWDispBegin()
.......................................................................................................................................................... 1672
FWDispEnd() .......................................................................................................................................................... 1672
GetLabelDim()
.......................................................................................................................................................... 1673
InvertRect().......................................................................................................................................................... 1674
LineTo() .......................................................................................................................................................... 1675
MeterPaint().......................................................................................................................................................... 1677
MGetCreate().......................................................................................................................................................... 1680
MGetLine() .......................................................................................................................................................... 1682
MGetReplace()
.......................................................................................................................................................... 1683
Paint3D() .......................................................................................................................................................... 1685
Pie() .......................................................................................................................................................... 1687
PolyPolygon()
.......................................................................................................................................................... 1689
Rectangle().......................................................................................................................................................... 1691
RectDotted().......................................................................................................................................................... 1692
RoundRect().......................................................................................................................................................... 1694
SetPixel() .......................................................................................................................................................... 1695
SetPolyFillMode()
.......................................................................................................................................................... 1697
TabsPaint().......................................................................................................................................................... 1698
WndBox() .......................................................................................................................................................... 1700
WndBoxIn().......................................................................................................................................................... 1702
WndBoxRaised()
.......................................................................................................................................................... 1703
WndInset() .......................................................................................................................................................... 1705
WndHRaised().......................................................................................................................................................... 1706
WndRaised() .......................................................................................................................................................... 1707
WndVLineRaised()
.......................................................................................................................................................... 1709
WndVRaised().......................................................................................................................................................... 1710
WQOut() .......................................................................................................................................................... 1711
23 Executing
...................................................................................................................................
other apps 1713
ExitWindowsExec()
.......................................................................................................................................................... 1713
IsExeRunning()
.......................................................................................................................................................... 1714

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXVI

ShellExecute()
.......................................................................................................................................................... 1715
WaitMessage()
.......................................................................................................................................................... 1717
WaitRun() .......................................................................................................................................................... 1718
WinExec() .......................................................................................................................................................... 1721
24 Files...................................................................................................................................
management 1725
aGetWorkAreas()
.......................................................................................................................................................... 1725
ARead() .......................................................................................................................................................... 1726
ASave() .......................................................................................................................................................... 1727
cFileDisk() .......................................................................................................................................................... 1728
cFileExt() .......................................................................................................................................................... 1729
cFileMask().......................................................................................................................................................... 1729
cFileName().......................................................................................................................................................... 1730
cFileNoExt().......................................................................................................................................................... 1731
cFileNoPath()
.......................................................................................................................................................... 1732
cFilePath() .......................................................................................................................................................... 1733
cFileSubDir()
.......................................................................................................................................................... 1734
cFreadLine().......................................................................................................................................................... 1735
cNewFileName()
.......................................................................................................................................................... 1736
cTempFile().......................................................................................................................................................... 1737
FAttrib() .......................................................................................................................................................... 1738
FCommit() .......................................................................................................................................................... 1739
FDate() .......................................................................................................................................................... 1740
FSize() .......................................................................................................................................................... 1740
FTime() .......................................................................................................................................................... 1741
GetFreeFil().......................................................................................................................................................... 1742
lClose() .......................................................................................................................................................... 1743
lCreat() .......................................................................................................................................................... 1744
Lfn2sfn() .......................................................................................................................................................... 1746
lGetTextLine()
.......................................................................................................................................................... 1747
lOpen() .......................................................................................................................................................... 1749
MoveFile() .......................................................................................................................................................... 1751
nTxtLines().......................................................................................................................................................... 1751
Sfn2Lfn() .......................................................................................................................................................... 1753
Scan() .......................................................................................................................................................... 1753
uLoadStruct()
.......................................................................................................................................................... 1755
25 Fivewin
...................................................................................................................................
Internals 1757
Dotsadjust().......................................................................................................................................................... 1757
EditCell() .......................................................................................................................................................... 1759
Fillevent() .......................................................................................................................................................... 1760
GetMDIChlP().......................................................................................................................................................... 1762
LocalShrink()
.......................................................................................................................................................... 1763
lWRunning().......................................................................................................................................................... 1765
nTcwRow() .......................................................................................................................................................... 1766
RddEvent() .......................................................................................................................................................... 1767
ReadEven() .......................................................................................................................................................... 1769
ReadVar() .......................................................................................................................................................... 1771
TabCtrlAdd().......................................................................................................................................................... 1772
TCBrwSrol().......................................................................................................................................................... 1773
TcDrawCell().......................................................................................................................................................... 1775
ThisStruct().......................................................................................................................................................... 1777
TreeBegin().......................................................................................................................................................... 1779
TreeEnd() .......................................................................................................................................................... 1781
TvInsertItem()
.......................................................................................................................................................... 1782

© 2011 Infosys Argentina

XXVI
SCRIPT Lims - Funciones Avanzadas Contenido XXVII

WBrwLine().......................................................................................................................................................... 1783
WBrwPane().......................................................................................................................................................... 1786
WBrwScroll()
.......................................................................................................................................................... 1788
WBrwSelBox()
.......................................................................................................................................................... 1790
26 Font...................................................................................................................................
management 1792
CreateFont()
.......................................................................................................................................................... 1792
DispFontPerSize()
.......................................................................................................................................................... 1794
EnumFontFa()
.......................................................................................................................................................... 1794
GetFontInfor()
.......................................................................................................................................................... 1797
GetFontNames()
.......................................................................................................................................................... 1798
RemoveFont()
.......................................................................................................................................................... 1799
27 Help...................................................................................................................................
files management 1801
GetHelpFile()
.......................................................................................................................................................... 1801
GetHelpTopic()
.......................................................................................................................................................... 1802
HelpCtrlhWnd()
.......................................................................................................................................................... 1803
HelpIndex().......................................................................................................................................................... 1804
HelpPopup().......................................................................................................................................................... 1805
HelpSearch()
.......................................................................................................................................................... 1806
HelpSetPos()
.......................................................................................................................................................... 1807
HelpTopic().......................................................................................................................................................... 1808
HTMLHelp().......................................................................................................................................................... 1810
SetHelpFile()
.......................................................................................................................................................... 1811
WinHelp() .......................................................................................................................................................... 1812
28 Icons
................................................................................................................................... 1814
Destroyico().......................................................................................................................................................... 1814
DrawIconFocus()
.......................................................................................................................................................... 1815
ExtDrawIcon()
.......................................................................................................................................................... 1816
ExtractIcon()
.......................................................................................................................................................... 1817
FindIcon() .......................................................................................................................................................... 1819
nIcons() .......................................................................................................................................................... 1819
29 Ini files
................................................................................................................................... 1821
DelIniEntr() .......................................................................................................................................................... 1821
Delinisect().......................................................................................................................................................... 1822
GetProfInt().......................................................................................................................................................... 1824
GetProfStr().......................................................................................................................................................... 1826
GetPvProfInt()
.......................................................................................................................................................... 1828
GetPvpProfString()
.......................................................................................................................................................... 1829
WritePProString()
.......................................................................................................................................................... 1831
WriteProfString()
.......................................................................................................................................................... 1833
30 Internet
................................................................................................................................... 1834
Accept .......................................................................................................................................................... 1834
ClientIp() .......................................................................................................................................................... 1835
CloseSocket()
.......................................................................................................................................................... 1837
cMimeDec().......................................................................................................................................................... 1837
cMimeEnc().......................................................................................................................................................... 1838
ConnectTo().......................................................................................................................................................... 1839
ffMimeDec().......................................................................................................................................................... 1840
ffMimeEnc().......................................................................................................................................................... 1841
fMimeDec().......................................................................................................................................................... 1842
fMimeEnc().......................................................................................................................................................... 1844
GetHostByAddress()
.......................................................................................................................................................... 1845
GetHostByName()
.......................................................................................................................................................... 1846

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXVIII

GetHostName()
.......................................................................................................................................................... 1847
GetIP() .......................................................................................................................................................... 1848
GetPeerName()
.......................................................................................................................................................... 1849
Getport() .......................................................................................................................................................... 1851
GetQuery() .......................................................................................................................................................... 1852
GetServByName()
.......................................................................................................................................................... 1853
Inet_address()
.......................................................................................................................................................... 1854
Listen() .......................................................................................................................................................... 1856
Recv() .......................................................................................................................................................... 1857
SendBinary()
.......................................................................................................................................................... 1858
ServerIP() .......................................................................................................................................................... 1860
SetSockOpt()
.......................................................................................................................................................... 1861
Socket() .......................................................................................................................................................... 1863
SocketSelect()
.......................................................................................................................................................... 1864
SocketSend()
.......................................................................................................................................................... 1866
WSAAsyncSelect()
.......................................................................................................................................................... 1866
WSACleanUp()
.......................................................................................................................................................... 1868
WSAGetLastError()
.......................................................................................................................................................... 1869
WSAStartUp()
.......................................................................................................................................................... 1870
31 Joystick
................................................................................................................................... 1871
JoyGetDevCaps()
.......................................................................................................................................................... 1871
JoyGetNumDevs()
.......................................................................................................................................................... 1874
JoyGetPos().......................................................................................................................................................... 1875
JoyGetThreshold()
.......................................................................................................................................................... 1877
JoyReleaseCapture()
.......................................................................................................................................................... 1879
JoySetCapture()
.......................................................................................................................................................... 1880
JoySetThre()
.......................................................................................................................................................... 1881
32 Keyboard
................................................................................................................................... 1883
GetASyncKey()
.......................................................................................................................................................... 1883
GetKeyStat()
.......................................................................................................................................................... 1885
GetKeyToggle()
.......................................................................................................................................................... 1886
KeyFast() .......................................................................................................................................................... 1888
KeyToggle().......................................................................................................................................................... 1889
33 Listboxes
................................................................................................................................... 1890
LbxDrawItem()
.......................................................................................................................................................... 1890
LbxGetItem()
.......................................................................................................................................................... 1892
LbxGetSelItems()
.......................................................................................................................................................... 1894
LbxMeasure()
.......................................................................................................................................................... 1895
GetLocal() .......................................................................................................................................................... 1897
34 MAPI
................................................................................................................................... 1899
MAPIAddress()
.......................................................................................................................................................... 1899
MAPIDeleteMail()
.......................................................................................................................................................... 1900
MAPIFindNext()
.......................................................................................................................................................... 1901
MAPILogoff()
.......................................................................................................................................................... 1902
MAPILogon()
.......................................................................................................................................................... 1903
MAPIReadMail()
.......................................................................................................................................................... 1905
MAPIResolveName()
.......................................................................................................................................................... 1907
MAPISendDocuments()
.......................................................................................................................................................... 1907
MAPISendMail()
.......................................................................................................................................................... 1909
MimeExt() .......................................................................................................................................................... 1912
35 Memory/Variables
...................................................................................................................................
use 1913
GetParam().......................................................................................................................................................... 1913

© 2011 Infosys Argentina

XXVIII
SCRIPT Lims - Funciones Avanzadas Contenido XXIX

MemStat() .......................................................................................................................................................... 1914


MoreHeap().......................................................................................................................................................... 1916
nExtMem() .......................................................................................................................................................... 1917
nPtrWord() .......................................................................................................................................................... 1919
nStatics() .......................................................................................................................................................... 1919
PeekByte() .......................................................................................................................................................... 1920
PeekWord().......................................................................................................................................................... 1921
PokeByte() .......................................................................................................................................................... 1923
PokeWord().......................................................................................................................................................... 1924
RLNew() .......................................................................................................................................................... 1926
StrPtr() .......................................................................................................................................................... 1927
SymName().......................................................................................................................................................... 1928
SymStat() .......................................................................................................................................................... 1929
SymTblAt() .......................................................................................................................................................... 1930
SymTblLen() .......................................................................................................................................................... 1932
uValBlack() .......................................................................................................................................................... 1933
36 Metafiles
................................................................................................................................... 1934
CloseEnhMetafile()
.......................................................................................................................................................... 1934
CreateEnhMetaFile()
.......................................................................................................................................................... 1935
CreateMetaFile()
.......................................................................................................................................................... 1935
DeleteEnhMetaFile()
.......................................................................................................................................................... 1936
GetEnhMetaFile()
.......................................................................................................................................................... 1936
GetPEnhMetaFile()
.......................................................................................................................................................... 1937
GetPMetaFile()
.......................................................................................................................................................... 1938
PlayEnhMetaFile()
.......................................................................................................................................................... 1939
37 Midi................................................................................................................................... 1940
cMidiMapper()
.......................................................................................................................................................... 1940
MidiNoteOff()
.......................................................................................................................................................... 1940
MidiSetPatch()
.......................................................................................................................................................... 1941
38 Mouse
................................................................................................................................... 1942
GetCapture()
.......................................................................................................................................................... 1942
ReleaseCapture()
.......................................................................................................................................................... 1943
SetCapture()
.......................................................................................................................................................... 1945
39 Menus
...................................................................................................................................
management 1947
AppendMenu()
.......................................................................................................................................................... 1947
Checkmenu().......................................................................................................................................................... 1948
CreateMenu()
.......................................................................................................................................................... 1949
CreatePopUpMenu()
.......................................................................................................................................................... 1950
DestroyMenu()
.......................................................................................................................................................... 1951
EnableMenu()
.......................................................................................................................................................... 1952
GetDrawIte()
.......................................................................................................................................................... 1953
GetDrawMenu()
.......................................................................................................................................................... 1955
GetMeaItem()
.......................................................................................................................................................... 1957
GetMenuState()
.......................................................................................................................................................... 1958
GetMenuString()
.......................................................................................................................................................... 1961
GetMItemCount()
.......................................................................................................................................................... 1961
GetMItemId()
.......................................................................................................................................................... 1962
GetSubMenu()
.......................................................................................................................................................... 1963
GetSystemMenu()
.......................................................................................................................................................... 1964
HiliMenuItem()
.......................................................................................................................................................... 1966
InsertMenu()
.......................................................................................................................................................... 1968
IsMenu() .......................................................................................................................................................... 1970
LastItemPos()
.......................................................................................................................................................... 1972

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXX

LastMenu().......................................................................................................................................................... 1972
Loadaccelerators()
.......................................................................................................................................................... 1973
MeasureItem()
.......................................................................................................................................................... 1975
MenuAddItem()
.......................................................................................................................................................... 1976
MenuBegin()
.......................................................................................................................................................... 1978
MenuDrawItem()
.......................................................................................................................................................... 1980
MenuEnd() .......................................................................................................................................................... 1981
MenuMeasureItem()
.......................................................................................................................................................... 1983
ModifyMenu()
.......................................................................................................................................................... 1985
RemoveMenu()
.......................................................................................................................................................... 1986
SetMenu() .......................................................................................................................................................... 1988
TrackPopUpMenu()
.......................................................................................................................................................... 1990
40 MIDI...................................................................................................................................
management 1992
aMidiDevices()
.......................................................................................................................................................... 1992
lMDIiExist() .......................................................................................................................................................... 1993
lMIDIOutOpen()
.......................................................................................................................................................... 1994
MCIGetErrorString()
.......................................................................................................................................................... 1995
MCISendCommand()
.......................................................................................................................................................... 2002
MCISendString()
.......................................................................................................................................................... 2003
MidiNoteOn() .......................................................................................................................................................... 2005
nMciOpen().......................................................................................................................................................... 2006
nMciPlay() .......................................................................................................................................................... 2007
nMciWindow() .......................................................................................................................................................... 2009
nMidiDevices()
.......................................................................................................................................................... 2011
41 NTX/MDX
...................................................................................................................................
files management 2012
cNtxKey() .......................................................................................................................................................... 2012
NtxPos() .......................................................................................................................................................... 2013
42 Network
...................................................................................................................................
connection 2015
NetSerialNumber()
.......................................................................................................................................................... 2015
WNetAddConnection()
.......................................................................................................................................................... 2015
WNetBrowse()
.......................................................................................................................................................... 2017
WNetConnetDialog()
.......................................................................................................................................................... 2019
WNetDelConnection()
.......................................................................................................................................................... 2020
WNetDisconnectDialog()
.......................................................................................................................................................... 2021
WNetError().......................................................................................................................................................... 2023
WNetGetConnection()
.......................................................................................................................................................... 2024
WNetGetErrorText()
.......................................................................................................................................................... 2025
WNetGetUser()
.......................................................................................................................................................... 2026
43 Numeric
...................................................................................................................................
manipulation 2027
ATang() .......................................................................................................................................................... 2027
B2Bin() .......................................................................................................................................................... 2028
BinToC() .......................................................................................................................................................... 2029
Bin2D() .......................................................................................................................................................... 2030
BinToN() .......................................................................................................................................................... 2031
C2Hex() .......................................................................................................................................................... 2031
Cos() .......................................................................................................................................................... 2033
cStrWord() .......................................................................................................................................................... 2033
D2bin() .......................................................................................................................................................... 2034
DecToHex().......................................................................................................................................................... 2035
HexToDec().......................................................................................................................................................... 2036
Hex2Str() .......................................................................................................................................................... 2037
Htons() .......................................................................................................................................................... 2038
I2Hex() .......................................................................................................................................................... 2039

© 2011 Infosys Argentina

XXX
SCRIPT Lims - Funciones Avanzadas Contenido XXXI

L2Hex() .......................................................................................................................................................... 2040


lAnd() .......................................................................................................................................................... 2042
lXor() .......................................................................................................................................................... 2044
nAnd() .......................................................................................................................................................... 2045
nDbl2Flt() .......................................................................................................................................................... 2048
nHex() .......................................................................................................................................................... 2049
nHiByte() .......................................................................................................................................................... 2050
nHiWord() .......................................................................................................................................................... 2052
nLoByte() .......................................................................................................................................................... 2053
nLoWord() .......................................................................................................................................................... 2055
nMakeLong().......................................................................................................................................................... 2056
nNot() .......................................................................................................................................................... 2058
nOr() .......................................................................................................................................................... 2059
nRandom() .......................................................................................................................................................... 2062
nToBin() .......................................................................................................................................................... 2063
nXOr() .......................................................................................................................................................... 2064
Sin() .......................................................................................................................................................... 2066
StrByte() .......................................................................................................................................................... 2066
Str2Hex() .......................................................................................................................................................... 2068
Tang() .......................................................................................................................................................... 2068
UToS() .......................................................................................................................................................... 2069
44 ODBC
................................................................................................................................... 2070
OdbcDsnEntries()
.......................................................................................................................................................... 2070
45 OemAnsi
................................................................................................................................... 2071
AnsiToOem()
.......................................................................................................................................................... 2071
AnsiLower()
.......................................................................................................................................................... 2072
AnsiUpper().......................................................................................................................................................... 2073
IsAnsi() .......................................................................................................................................................... 2074
IsAnsiLower()
.......................................................................................................................................................... 2075
IsAnsiUpper()
.......................................................................................................................................................... 2076
IsOEM() .......................................................................................................................................................... 2077
OemToAnsi()
.......................................................................................................................................................... 2079
46 OLE................................................................................................................................... 2080
CreateOLEObject()
.......................................................................................................................................................... 2080
47 OOPs
................................................................................................................................... 2081
aOData .......................................................................................................................................................... 2081
ASend() .......................................................................................................................................................... 2082
ChildLevel().......................................................................................................................................................... 2084
ClassCreat()
.......................................................................................................................................................... 2085
GetClassName()
.......................................................................................................................................................... 2086
GetDatas() .......................................................................................................................................................... 2087
lSaveObject()
.......................................................................................................................................................... 2089
Oclone() .......................................................................................................................................................... 2090
ORead() .......................................................................................................................................................... 2091
OSend() .......................................................................................................................................................... 2093
48 Pens
................................................................................................................................... 2095
CreatePen().......................................................................................................................................................... 2095
GetStockObject()
.......................................................................................................................................................... 2097
SetBlackPen()
.......................................................................................................................................................... 2099
SetWhitePen()
.......................................................................................................................................................... 2100
49 Printing
................................................................................................................................... 2102
aGetPrinters()
.......................................................................................................................................................... 2102

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXXII

Draftmode().......................................................................................................................................................... 2102
Enddoc() .......................................................................................................................................................... 2103
EndPage() .......................................................................................................................................................... 2104
Escape() .......................................................................................................................................................... 2106
GetPrintDC() .......................................................................................................................................................... 2108
GetPrintDefault()
.......................................................................................................................................................... 2109
GetPrinter().......................................................................................................................................................... 2109
ImportRawFile()
.......................................................................................................................................................... 2111
PageBegin().......................................................................................................................................................... 2112
PageEnd() .......................................................................................................................................................... 2113
PrintBegin().......................................................................................................................................................... 2113
PrintEnd() .......................................................................................................................................................... 2115
PrinterEsc().......................................................................................................................................................... 2116
PrinterIni() .......................................................................................................................................................... 2117
PrinterSetup()
.......................................................................................................................................................... 2118
PrnBinSource()
.......................................................................................................................................................... 2119
PrnDuplex().......................................................................................................................................................... 2120
PrnGetCopies()
.......................................................................................................................................................... 2122
PrnGetDriver()
.......................................................................................................................................................... 2123
PrnGetName() .......................................................................................................................................................... 2124
PrnGetOrientation()
.......................................................................................................................................................... 2125
PrnGetPages().......................................................................................................................................................... 2126
PrnGetPort() .......................................................................................................................................................... 2127
PrnGetSize() .......................................................................................................................................................... 2128
PrnLandscape()
.......................................................................................................................................................... 2129
PrnOffset() .......................................................................................................................................................... 2130
PrnPortrait().......................................................................................................................................................... 2132
PrnSetCollate()
.......................................................................................................................................................... 2133
PrnSetCopies()
.......................................................................................................................................................... 2133
PrnSetSize() .......................................................................................................................................................... 2134
PrnSetPage() .......................................................................................................................................................... 2136
Report() .......................................................................................................................................................... 2138
RPreview() .......................................................................................................................................................... 2140
RptAddColumn()
.......................................................................................................................................................... 2141
RptAddGroup().......................................................................................................................................................... 2144
RptBegin() .......................................................................................................................................................... 2145
RptEnd() .......................................................................................................................................................... 2148
SetPrintDefault()
.......................................................................................................................................................... 2149
SpoolFile() .......................................................................................................................................................... 2150
StartDoc() .......................................................................................................................................................... 2151
StartPage() .......................................................................................................................................................... 2152
WndPrint() .......................................................................................................................................................... 2153
WorkSheet() .......................................................................................................................................................... 2155
50 RAS...................................................................................................................................
Api management 2157
RaConst() .......................................................................................................................................................... 2157
Radial() .......................................................................................................................................................... 2159
RaEnumConnections()
.......................................................................................................................................................... 2160
RaEnumEntries()
.......................................................................................................................................................... 2161
RaGetConst().......................................................................................................................................................... 2162
RaGetError().......................................................................................................................................................... 2166
RaHangUp().......................................................................................................................................................... 2167
RasDialDlg().......................................................................................................................................................... 2168
Ras_dialEntry()
.......................................................................................................................................................... 2169

© 2011 Infosys Argentina

XXXII
SCRIPT Lims - Funciones Avanzadas Contenido XXXIII

51 Resources
................................................................................................................................... 2171
AddFontResource
..........................................................................................................................................................
() 2171
cResToStr().......................................................................................................................................................... 2172
Delresource()
.......................................................................................................................................................... 2173
Endmonitor().......................................................................................................................................................... 2175
FindIcon() .......................................................................................................................................................... 2176
FindResource()
.......................................................................................................................................................... 2176
FreeResources()
.......................................................................................................................................................... 2178
GetFreeSystemResources()
.......................................................................................................................................................... 2178
GetResources()
.......................................................................................................................................................... 2179
HasResources()
.......................................................................................................................................................... 2180
LoadMenu().......................................................................................................................................................... 2181
LoadBitmap().......................................................................................................................................................... 2183
LoadCursor().......................................................................................................................................................... 2185
LoadIcon() .......................................................................................................................................................... 2186
Loadlib32() .......................................................................................................................................................... 2188
LoadLibrary()
.......................................................................................................................................................... 2189
LoadResource()
.......................................................................................................................................................... 2193
LoadString().......................................................................................................................................................... 2195
LoadValue().......................................................................................................................................................... 2196
MakeIntResource()
.......................................................................................................................................................... 2197
ResourceFree()
.......................................................................................................................................................... 2198
SetResources()
.......................................................................................................................................................... 2200
52 Registry
................................................................................................................................... 2201
RegCloseKey()
.......................................................................................................................................................... 2201
RegCreateKey()
.......................................................................................................................................................... 2203
RegDeleteKey()
.......................................................................................................................................................... 2205
RegEnumKey()
.......................................................................................................................................................... 2207
RegisterClass()
.......................................................................................................................................................... 2208
RegOpenKey()
.......................................................................................................................................................... 2211
RegQueryValue()
.......................................................................................................................................................... 2214
RegSetValue()
.......................................................................................................................................................... 2217
53 Security/Copy
...................................................................................................................................
protection 2218
Decrypt() .......................................................................................................................................................... 2218
Encrypt() .......................................................................................................................................................... 2220
54 Sound
................................................................................................................................... 2221
MessageBeep()
.......................................................................................................................................................... 2221
SndPlayRes()
.......................................................................................................................................................... 2222
SndPlaySound()
.......................................................................................................................................................... 2225
55 SQL................................................................................................................................... 2227
SQLAllocConnect()
.......................................................................................................................................................... 2227
SQLAllocEnv()
.......................................................................................................................................................... 2228
SQLAllocStmt()
.......................................................................................................................................................... 2228
SQLCancel().......................................................................................................................................................... 2229
SQLCol() .......................................................................................................................................................... 2230
SQLColumns()
.......................................................................................................................................................... 2231
SQLCommit()
.......................................................................................................................................................... 2231
SQLConnect()
.......................................................................................................................................................... 2232
SQLDesc32()
.......................................................................................................................................................... 2233
SQLDescribeCol()
.......................................................................................................................................................... 2234
SQLDisconnect()
.......................................................................................................................................................... 2235
SQLDriverConnect()
.......................................................................................................................................................... 2236

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXXIV

SQLDrvC32().......................................................................................................................................................... 2236
SQLError() .......................................................................................................................................................... 2238
SQLExecDirect()
.......................................................................................................................................................... 2238
SQLExecute()
.......................................................................................................................................................... 2239
SQLExtendedFetch()
.......................................................................................................................................................... 2240
SQLFetch() .......................................................................................................................................................... 2241
SQLFile() .......................................................................................................................................................... 2242
SQLFreeConnect()
.......................................................................................................................................................... 2242
SQLFreeEnv()
.......................................................................................................................................................... 2243
SQLFreeStmt()
.......................................................................................................................................................... 2244
SQLGetConnectOption()
.......................................................................................................................................................... 2245
SQLGetCurName()
.......................................................................................................................................................... 2245
SQLGetCursorName()
.......................................................................................................................................................... 2246
SQLGetD32().......................................................................................................................................................... 2247
SQLGetData()
.......................................................................................................................................................... 2248
SQLGetDiagRec()
.......................................................................................................................................................... 2249
SQLGetIn32()
.......................................................................................................................................................... 2249
SQLGetInfo()
.......................................................................................................................................................... 2250
SQLGetStmtOption()
.......................................................................................................................................................... 2251
SQLGetTextData()
.......................................................................................................................................................... 2252
SQLIndex() .......................................................................................................................................................... 2253
SQLNumResultCols()
.......................................................................................................................................................... 2253
SQLParamData()
.......................................................................................................................................................... 2254
SQLPrep32().......................................................................................................................................................... 2255
SQLPrepare()
.......................................................................................................................................................... 2256
SQLPrimaryKeys()
.......................................................................................................................................................... 2256
SQLPutData()
.......................................................................................................................................................... 2257
SQLRollBack()
.......................................................................................................................................................... 2258
SQLRowCount()
.......................................................................................................................................................... 2259
SQLSCol() .......................................................................................................................................................... 2259
SQLSetConnectOption()
.......................................................................................................................................................... 2260
SQLSetCurName()
.......................................................................................................................................................... 2261
SQLSetCursorName()
.......................................................................................................................................................... 2262
SQLSetParam()
.......................................................................................................................................................... 2263
SQLSetPos().......................................................................................................................................................... 2264
SQLSetStmt()
.......................................................................................................................................................... 2265
SQLStatistics()
.......................................................................................................................................................... 2266
SQLTables().......................................................................................................................................................... 2266
SQLTransact()
.......................................................................................................................................................... 2267
56 Strings
................................................................................................................................... 2268
AllTrim() .......................................................................................................................................................... 2268
AnsiToOem().......................................................................................................................................................... 2269
AnsiToWide()
.......................................................................................................................................................... 2270
cChr2Data().......................................................................................................................................................... 2271
cValToChar()
.......................................................................................................................................................... 2272
nStrCrc() .......................................................................................................................................................... 2273
nStrHash() .......................................................................................................................................................... 2275
OemToAnsi().......................................................................................................................................................... 2277
StrCapFirst()
.......................................................................................................................................................... 2279
StrChar() .......................................................................................................................................................... 2280
StrCharCount()
.......................................................................................................................................................... 2281
StrCpy() .......................................................................................................................................................... 2282
StrPtr() .......................................................................................................................................................... 2283
StrToken() .......................................................................................................................................................... 2284

© 2011 Infosys Argentina

XXXIV
SCRIPT Lims - Funciones Avanzadas Contenido XXXV

Str2Hex() .......................................................................................................................................................... 2286


uCharToVal()
.......................................................................................................................................................... 2286
UnEscape() .......................................................................................................................................................... 2288
xPadC() .......................................................................................................................................................... 2289
xPadL() .......................................................................................................................................................... 2291
xPadR() .......................................................................................................................................................... 2293
WideToAnsi()
.......................................................................................................................................................... 2294
57 System
................................................................................................................................... 2295
Arg() .......................................................................................................................................................... 2295
cArgV() .......................................................................................................................................................... 2297
AuxGetCaps().......................................................................................................................................................... 2299
AuxGetDev() .......................................................................................................................................................... 2301
Auxgetvol().......................................................................................................................................................... 2302
CPUType() .......................................................................................................................................................... 2303
ColorsQty().......................................................................................................................................................... 2304
DeviceCapa().......................................................................................................................................................... 2305
cWinVersion()
.......................................................................................................................................................... 2309
DevMode() .......................................................................................................................................................... 2310
ExitWnd() .......................................................................................................................................................... 2313
FindExecut().......................................................................................................................................................... 2314
Getcpu() .......................................................................................................................................................... 2316
GetDeviceCaps()
.......................................................................................................................................................... 2317
GetFreeSpace()
.......................................................................................................................................................... 2324
GetInstance()
.......................................................................................................................................................... 2326
GetLastError()
.......................................................................................................................................................... 2327
GetModuleFileName()
.......................................................................................................................................................... 2328
GetModuleHandle()
.......................................................................................................................................................... 2329
GetNumTask().......................................................................................................................................................... 2330
GetProc32().......................................................................................................................................................... 2331
GetProcAddress()
.......................................................................................................................................................... 2334
GetSysMetrics()
.......................................................................................................................................................... 2337
GetTasks() .......................................................................................................................................................... 2339
GetVersion().......................................................................................................................................................... 2341
GetWindowsDirectory()
.......................................................................................................................................................... 2342
GetWinVer().......................................................................................................................................................... 2343
GlobalAlloc()
.......................................................................................................................................................... 2343
GlobalCompact()
.......................................................................................................................................................... 2346
GlobalData().......................................................................................................................................................... 2347
GlobalDelAtom()
.......................................................................................................................................................... 2349
GlobalFree().......................................................................................................................................................... 2349
GlobalGetA().......................................................................................................................................................... 2351
GlobalLock().......................................................................................................................................................... 2352
GlobalRealloc()
.......................................................................................................................................................... 2354
GlobalSize().......................................................................................................................................................... 2355
GlobalUnlock()
.......................................................................................................................................................... 2357
IsCdRom() .......................................................................................................................................................... 2358
InterruptRegister()
.......................................................................................................................................................... 2359
InterruptUnRegister()
.......................................................................................................................................................... 2360
IsDiskette().......................................................................................................................................................... 2362
IsExeRunning()
.......................................................................................................................................................... 2363
IsWin2000().......................................................................................................................................................... 2364
IsWin95() .......................................................................................................................................................... 2365
IsWinNT() .......................................................................................................................................................... 2366
IsWinXP() .......................................................................................................................................................... 2368

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXXVI

nArgC() .......................................................................................................................................................... 2368


LargeFonts().......................................................................................................................................................... 2370
ParamCount().......................................................................................................................................................... 2371
SetHandleCount()
.......................................................................................................................................................... 2373
SetTaskManager()
.......................................................................................................................................................... 2374
ScrResolution()
.......................................................................................................................................................... 2375
oWndFromhWnd()
.......................................................................................................................................................... 2376
SetMultiple()
.......................................................................................................................................................... 2376
SetIdleAction()
.......................................................................................................................................................... 2378
SetWin95Look()
.......................................................................................................................................................... 2379
StartPlayback()
.......................................................................................................................................................... 2380
StartRecord()
.......................................................................................................................................................... 2382
StopPlayBack()
.......................................................................................................................................................... 2383
StopRecord().......................................................................................................................................................... 2384
StopUntil() .......................................................................................................................................................... 2385
SysRefresh().......................................................................................................................................................... 2386
SysWait() .......................................................................................................................................................... 2388
TaskAddIcon()
.......................................................................................................................................................... 2389
TaskChangeIcon()
.......................................................................................................................................................... 2390
TaskDelIcon()
.......................................................................................................................................................... 2391
TerminateApp()
.......................................................................................................................................................... 2391
TimeFromStart()
.......................................................................................................................................................... 2393
WaitMessage()
.......................................................................................................................................................... 2393
WaitSeconds()
.......................................................................................................................................................... 2394
WinUser() .......................................................................................................................................................... 2395
58 Text................................................................................................................................... 2396
DrawText() .......................................................................................................................................................... 2396
ExtTextOut().......................................................................................................................................................... 2399
GetTextAlign()
.......................................................................................................................................................... 2400
GetTextColor()
.......................................................................................................................................................... 2402
GetTextHeight()
.......................................................................................................................................................... 2403
GetTextWidth()
.......................................................................................................................................................... 2404
nFileCrc() .......................................................................................................................................................... 2405
Say3D() .......................................................................................................................................................... 2406
SetTextAlign()
.......................................................................................................................................................... 2408
SetTextColor()
.......................................................................................................................................................... 2411
SetTextJustification()
.......................................................................................................................................................... 2413
TextOut() .......................................................................................................................................................... 2415
WSay() .......................................................................................................................................................... 2417
WSayRect() .......................................................................................................................................................... 2419
59 Timers
................................................................................................................................... 2420
KillTimer() .......................................................................................................................................................... 2420
SetTimer() .......................................................................................................................................................... 2422
TimerCount().......................................................................................................................................................... 2424
TimerEvent().......................................................................................................................................................... 2426
60 User...................................................................................................................................
quick dialog boxes 2427
Browse() .......................................................................................................................................................... 2427
cGetExpression()
.......................................................................................................................................................... 2429
cGetDir() .......................................................................................................................................................... 2430
cGetDir32() .......................................................................................................................................................... 2431
cGetFile() .......................................................................................................................................................... 2432
cGetFile32().......................................................................................................................................................... 2433
ChooseColor()
.......................................................................................................................................................... 2435

© 2011 Infosys Argentina

XXXVI
SCRIPT Lims - Funciones Avanzadas Contenido XXXVII

ChooseFont().......................................................................................................................................................... 2437
DlgFindText()
.......................................................................................................................................................... 2438
FindText() .......................................................................................................................................................... 2440
MemoEdit().......................................................................................................................................................... 2441
MessageBox().......................................................................................................................................................... 2443
MoveCalendar()
.......................................................................................................................................................... 2448
MsgAbout().......................................................................................................................................................... 2450
MsgAlert() .......................................................................................................................................................... 2453
MsgBeep() .......................................................................................................................................................... 2454
MsgGet() .......................................................................................................................................................... 2456
MsgInfo() .......................................................................................................................................................... 2457
MsgList() .......................................................................................................................................................... 2459
MsgLogo() .......................................................................................................................................................... 2461
MsgMeter().......................................................................................................................................................... 2463
MsgNoYes().......................................................................................................................................................... 2466
MsgPaint() .......................................................................................................................................................... 2468
MsgRetryCancel()
.......................................................................................................................................................... 2469
MsgRun() .......................................................................................................................................................... 2471
MsgSound().......................................................................................................................................................... 2473
MsgStop() .......................................................................................................................................................... 2475
MsgToolBar().......................................................................................................................................................... 2477
MsgWait() .......................................................................................................................................................... 2480
MsgYesNo().......................................................................................................................................................... 2482
nGetFileFilter()
.......................................................................................................................................................... 2484
nGetFilter32()
.......................................................................................................................................................... 2485
nMsgBox() .......................................................................................................................................................... 2487
ShellAbout().......................................................................................................................................................... 2489
61 Windows
...................................................................................................................................
management 2491
aBrwPosRec .......................................................................................................................................................... 2491
aTcBrwPosRec()
.......................................................................................................................................................... 2492
aTreeBmps() .......................................................................................................................................................... 2494
Btndisable().......................................................................................................................................................... 2494
BtnPaint() .......................................................................................................................................................... 2495
BarAdjust().......................................................................................................................................................... 2496
Barinvert() .......................................................................................................................................................... 2496
Barpaint() .......................................................................................................................................................... 2497
BeginPaint().......................................................................................................................................................... 2498
BringWindo().......................................................................................................................................................... 2500
CallWindowProc()
.......................................................................................................................................................... 2501
CloseWindow()
.......................................................................................................................................................... 2503
CreateCare().......................................................................................................................................................... 2504
CreateCDC() .......................................................................................................................................................... 2505
CreateDC() .......................................................................................................................................................... 2507
cCtrl2Chr() .......................................................................................................................................................... 2508
ChangeProc().......................................................................................................................................................... 2510
Childwindo().......................................................................................................................................................... 2512
CloseMetafile()
.......................................................................................................................................................... 2512
cMDIStruct().......................................................................................................................................................... 2514
CreateWindow()
.......................................................................................................................................................... 2516
Ctl3dlook() .......................................................................................................................................................... 2518
Ctrldrawfo().......................................................................................................................................................... 2518
Defwindowp().......................................................................................................................................................... 2519
DeleteDC() .......................................................................................................................................................... 2521
DeleteMeta().......................................................................................................................................................... 2522

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XXXVIII

DeleteObject()
.......................................................................................................................................................... 2523
DestroyWindow()
.......................................................................................................................................................... 2525
EnableWindow()
.......................................................................................................................................................... 2527
EndPaint() .......................................................................................................................................................... 2528
Findwindow().......................................................................................................................................................... 2530
GetActiveWindow()
.......................................................................................................................................................... 2531
GetAllWin() .......................................................................................................................................................... 2533
GetCaretPos()
.......................................................................................................................................................... 2533
GetClassInfo()
.......................................................................................................................................................... 2535
GetClientRect()
.......................................................................................................................................................... 2535
GetCoors() .......................................................................................................................................................... 2537
GetCtrlId() .......................................................................................................................................................... 2538
GetDC() .......................................................................................................................................................... 2540
GetDesktopWindow()
.......................................................................................................................................................... 2542
GetFocus() .......................................................................................................................................................... 2543
GetFrameProc()
.......................................................................................................................................................... 2545
GetGridSize()
.......................................................................................................................................................... 2546
GethWnd32() .......................................................................................................................................................... 2548
GetMapMode().......................................................................................................................................................... 2549
GetMetaBit().......................................................................................................................................................... 2551
GetMetaFile()
.......................................................................................................................................................... 2552
GetParent().......................................................................................................................................................... 2553
GetProp() .......................................................................................................................................................... 2555
GetScrollPos()
.......................................................................................................................................................... 2557
GetWindow() .......................................................................................................................................................... 2558
GetWindowLong()
.......................................................................................................................................................... 2560
GetWindowText()
.......................................................................................................................................................... 2561
GetWindowWord()
.......................................................................................................................................................... 2561
GetWinFlags()
.......................................................................................................................................................... 2563
GetWinTxtLength()
.......................................................................................................................................................... 2565
GetWndApp() .......................................................................................................................................................... 2566
GetWndDefault()
.......................................................................................................................................................... 2567
GetWndFrame()
.......................................................................................................................................................... 2568
GetWndRect().......................................................................................................................................................... 2569
GetWndTask().......................................................................................................................................................... 2570
GlobalAddAtom()
.......................................................................................................................................................... 2572
HelpCtrlhWnd()
.......................................................................................................................................................... 2573
HideCaret().......................................................................................................................................................... 2574
InvalidateRect()
.......................................................................................................................................................... 2575
IsChild() .......................................................................................................................................................... 2577
IsDefButton()
.......................................................................................................................................................... 2578
IsIconic() .......................................................................................................................................................... 2580
IsOverWnd() .......................................................................................................................................................... 2581
IsWindow() .......................................................................................................................................................... 2582
IsWindowEnabled()
.......................................................................................................................................................... 2583
IsWindowVisible()
.......................................................................................................................................................... 2584
IsZoomed().......................................................................................................................................................... 2585
MakeWin() .......................................................................................................................................................... 2586
MdiCtrlAdjust()
.......................................................................................................................................................... 2587
MDIRecEdit().......................................................................................................................................................... 2588
MoveGet() .......................................................................................................................................................... 2591
MoveTo() .......................................................................................................................................................... 2592
MoveWindow().......................................................................................................................................................... 2594
nWindows().......................................................................................................................................................... 2595

© 2011 Infosys Argentina

XXXVIII
SCRIPT Lims - Funciones Avanzadas Contenido XXXIX

nWndChrHeight()
.......................................................................................................................................................... 2596
nWRow() .......................................................................................................................................................... 2598
nWRows() .......................................................................................................................................................... 2599
PeekMessage()
.......................................................................................................................................................... 2601
PlayMetafile()
.......................................................................................................................................................... 2603
PostMessage()
.......................................................................................................................................................... 2604
PostQuitMessage()
.......................................................................................................................................................... 2606
ReleaseDC().......................................................................................................................................................... 2608
RemoveProp().......................................................................................................................................................... 2609
ResetDC() .......................................................................................................................................................... 2611
RestoreDC().......................................................................................................................................................... 2613
RestProc() .......................................................................................................................................................... 2614
SaveDC() .......................................................................................................................................................... 2616
ScrollWindow()
.......................................................................................................................................................... 2617
SelectObject()
.......................................................................................................................................................... 2619
SendMessage()
.......................................................................................................................................................... 2621
Set3dLook().......................................................................................................................................................... 2622
SetActiveWindow()
.......................................................................................................................................................... 2624
SetBkMode() .......................................................................................................................................................... 2625
SetCaretPos()
.......................................................................................................................................................... 2627
SetClassWord()
.......................................................................................................................................................... 2628
SetDeskWallPaper()
.......................................................................................................................................................... 2631
SetFocus() .......................................................................................................................................................... 2632
SetForegroundWindow()
.......................................................................................................................................................... 2634
SetGridSize()
.......................................................................................................................................................... 2635
SetLayeredWindowAttributes()
.......................................................................................................................................................... 2636
SetMapMode().......................................................................................................................................................... 2637
SetMinMax() .......................................................................................................................................................... 2640
SetParent() .......................................................................................................................................................... 2642
SetProp() .......................................................................................................................................................... 2644
SetViewOrg().......................................................................................................................................................... 2645
SetViewPortExt()
.......................................................................................................................................................... 2647
SetWindowExt()
.......................................................................................................................................................... 2650
SetWindowLong()
.......................................................................................................................................................... 2650
SetWindowOrg()
.......................................................................................................................................................... 2651
SetWindowPos()
.......................................................................................................................................................... 2652
SetWindowText()
.......................................................................................................................................................... 2654
SetWindowWord()
.......................................................................................................................................................... 2656
SetWndDefault()
.......................................................................................................................................................... 2657
ShowCaret() .......................................................................................................................................................... 2659
ShowWindow().......................................................................................................................................................... 2660
UpdateWindow()
.......................................................................................................................................................... 2662
WindowFromPoint()
.......................................................................................................................................................... 2664
WndAdjBottom()
.......................................................................................................................................................... 2666
WndAdjClient()
.......................................................................................................................................................... 2667
WndAdjLeft().......................................................................................................................................................... 2668
WndAdjRight()
.......................................................................................................................................................... 2670
WndAdjTop() .......................................................................................................................................................... 2671
WndBottom() .......................................................................................................................................................... 2672
WndCenter() .......................................................................................................................................................... 2673
WndCopy() .......................................................................................................................................................... 2674
WndHasScrolls()
.......................................................................................................................................................... 2676
WndHeight().......................................................................................................................................................... 2677
WndHlineRaised()
.......................................................................................................................................................... 2678

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Contenido XL

WndLeft() .......................................................................................................................................................... 2680


WndMain() .......................................................................................................................................................... 2681
WndParents()
.......................................................................................................................................................... 2682
WndSetSize()
.......................................................................................................................................................... 2683
WndTop() .......................................................................................................................................................... 2684
WndWith() .......................................................................................................................................................... 2685
WScroll() .......................................................................................................................................................... 2687
62 Win32
...................................................................................................................................
common controls 2688
IlAdd() .......................................................................................................................................................... 2688
IlAddIcon() .......................................................................................................................................................... 2689
IlAddMasked()
.......................................................................................................................................................... 2690
IlCreate() .......................................................................................................................................................... 2691
IlDestroy() .......................................................................................................................................................... 2691
IlSetBkColor()
.......................................................................................................................................................... 2692
LvInsertItem()
.......................................................................................................................................................... 2693
PropSheet().......................................................................................................................................................... 2694
SetDatePick()
.......................................................................................................................................................... 2694
TabCtrl_AdjustRect()
.......................................................................................................................................................... 2695
TabCtrl_GetCurSel()
.......................................................................................................................................................... 2696
TabCtrl_HitTest()
.......................................................................................................................................................... 2696
TabCtrl_SetCurSel()
.......................................................................................................................................................... 2697
TabDelAllItems()
.......................................................................................................................................................... 2698
TvDelAllItems()
.......................................................................................................................................................... 2698
TvDeleteItem()
.......................................................................................................................................................... 2699
TvGetSelected()
.......................................................................................................................................................... 2700
TvGetSelText()
.......................................................................................................................................................... 2700
TvHitTest() .......................................................................................................................................................... 2701
TvInsertItem()
.......................................................................................................................................................... 2702
TvSelect() .......................................................................................................................................................... 2703
TvSetImageList()
.......................................................................................................................................................... 2703
63 Zip ...................................................................................................................................
files management 2704
ZipBlock() .......................................................................................................................................................... 2704
ZipFile() .......................................................................................................................................................... 2706
ZipMsg() .......................................................................................................................................................... 2707
ZipName() .......................................................................................................................................................... 2708
ZipSize() .......................................................................................................................................................... 2710
ZiType() .......................................................................................................................................................... 2711
CloseZipFile()
.......................................................................................................................................................... 2713
GetFirstInZip()
.......................................................................................................................................................... 2714
GetNextInZip()
.......................................................................................................................................................... 2715
IsZip() .......................................................................................................................................................... 2717
LZCopyFile()
.......................................................................................................................................................... 2718

Indice 2721

© 2011 Infosys Argentina

XL
Parte

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Introduction 2

1 Introduction

Introduction Top Next

Here is a list of all Script Lims currently defined functions.

We provide this list with the intention that no part of Script Lims gets undocumented, but we want clearly
to warn you that IT IS NOT NECESSARY AT ALL to know all these functions because most of them are
automatically called and managed from higher level Script Lims Functions.

Most of these functions are specific to Windows API and most of them have their equivalents into other
graphical environments like Linux, Mac, etc. That is why in our opinion the real important thing is that
you understand all the processes that get involved when you are working in a graphical environment. But
never focus on the details. They will be changing always.

Keeping this object oriented point of view, you get the freedom of moving to any graphical environment
and you will still understand all the working processes.

Of course, some knowledge of this functions will give you sometimes a better understanding. If you want
and have the time to get a 100% understanding then we strongly recommend reviewing Borland's C++
HLP file or Microsoft C++ help (or any other Windows compilers manufacturer). But remember, have
your application built in time! That's the main thing.

© 2011 Infosys Argentina


Parte

II

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 4

2 Alphabetically ordered

2.1 A

2.1.1 AAt()

AAt() Previous Top Next

Returns the position of a substring taken from an array within a character string.

Syntax:

aAt( <aSearch>, <cTarget> ) --> <nPos>

Parameters:

<aSearch> The array of substrings to be search for.

<cTarget> The string to be searched.

Returns:

<nPos> The position of the first instance of the


substring within cTarget.

The search stops when one of the substrings in


aSearch is found.

Sample:

nPos := AAT( { "Test1", "Test2", "Test3" }, "Test2" )

2.1.2 aBrwPosRec()

aBrwPosRec() Previous Top Next

To calculate coordinated of the edition cell in a Browse

Syntax

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 5

ABrwPosRec (<hWnd>, <nRow>,


<aSizes>,;<nFirstItem>, <nCol>,
<hFont> ) \\aCoors

Function used in the class TWBrowse to determine


the coordinates where the active cell will be edited.
This function is used in the method: :EditCol ().

Parameters

<hWnd> Handle of the object TWBrowse.

<nRow> Active line of the TWBrowse.

<nFirstItem> First column for the left of the


TWBrowse.

<aSizes> Array with the sizes of the columns in


pixels.

<hFont> Handle of the object font of the TWBrowse

<nCol> Active column.

Returns

<aCoors> Array of four numbers that represent the


coordinates calculated of the cell of edition of the
TWBrowse. nTop, nLeft, nBottom, nRight

2.1.3 Accept()

Accept() Previous Top Next

It accepts a connection in a socket

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 6

Syntax:

Accept(<nSocket> ) \\nResult

Parameters:

<nSocket> Socket

Returns:

<nResult> If no error occurs, accept returns a value of


type SOCKET which is a descriptor for the accepted
socket. Otherwise, a value of INVALID_SOCKET is
returned, and a specific error code can be retrieved by
calling WSAGetLastError.

2.1.4 AddFontResource()

AddFontResource() Previous Top Next

Adds a new font to the Windows font table

Syntax:

AddFontResource( <cFontFile> |

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 7

<hFontResource> ) --> <nFontsAdded>

This function add a font resource to the Windows font


table. Any application can then use the font.

Parameters:

<cFontFile> The name of an external file where we


have stored some fonts we want to use in our
application.

<hFontResource>The handle of a module (DLL)


where we have stored some fonts we want to use in
our application.

Returns:

<nFontsAdded> The number of fonts the system


successfully added.

Sample:

AddFontResource( "MyApp.dll" )

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 8

2.1.5 aDrives()

aDrives() Previous Top Next

It returns an array with all the valid drives ids.

Syntax:

aDrives( [<nType>] ) -->aDrives

This function Returns an array with all the units valid


of our system.

Parameters:

<nType> 0 = All drives (default), 1 = Floppy drives


only, 2 = Hard drives only

Returns:

<aDrives> The array with the drives ids

2.1.6 aFindFile()

aFindFile() Previous Top Next

It locates files recursivity from a certain path

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 9

aFindFile(<cFileName>,; <cPath>,;
aResult> ) \\aResult

Parameters:

<cFileName> File to search.

<cPath> Path of beginning of the search.

<aResult> Array where the result of the search will be


stored.

Returns:

<aResult> Array with the result of the search.

Observations:

This function acts recursivity on the path and those


possible nested directories that there is from the path
given.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 10

Sample:

aResult := aFindFiles( "readme.txt","c:")

2.1.7 aGetPrinters()

aGetPrinters() Previous Top Next

Returns an array with all available printers.

Syntax:

aGetPrinters() --> <aPrinters>

Parameters:

None.

Returns:

<aPrinters> An array with the name of all available


printers.

Sample:

aPrinters := aGetPrinters()

2.1.8 aGetWorkAreas()

aGetWorkAreas() Previous Top Next

Returns an array with all available work areas

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 11

Syntax:

aGetWorkAreas() --> <aWorkAreas>

Parameters:

None.

Returns:

<aWorkAreas> An array with the name of all


workareas in use.

Sample:

aAreas := aGetWorkAreas()

2.1.9 AllTrim()

AllTrim() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 12

It suppresses spaces to left and right of a string

Syntax:

Alltrim(<cString> ) --> cNewString

Parameters:

<cString> Given string.

Returns:

<cNewString> New string without spaces to the end

Sample:

cNewString := Alltrim( cString )

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 13

2.1.10 AnimOpen()

AnimOpen() Previous Top Next

Opens an AVI clip and displays its first frame in an animation control.

Syntax:

AnimOpen( <hWnd>, <cAviFileRes> ) -->


<lSuccess>

Parameters:

<hWnd> Handle to the animation control.

<cAviFileRes> The AVI file name of the AVI


resource name to open.

Returns:

<lSuccess> Returns .t. if successful.

2.1.11 AnimOpenEx()

AnimOpenEx() Previous Top Next

Opens an AVI clip from a resource in a specified module and displays its first frame in an animation
control.

Syntax:

AnimOpenEx( <hWnd>, <hInstance>,


<cAviFileRes> ) --> lSuccess

Parameters:

<hWnd> Handle to the animation control.

<hInstance> Instance handle to the module that the


resource should be loaded from. If this value is NULL,
the resource is loaded from the module that created
the animation control.

<cAviFileRes> The AVI file name of the AVI resource


name to open.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 14

Returns:

<lSuccess> Returns .t. if successful.

2.1.12 AnimPlay()

AnimPlay() Previous Top Next

Plays an AVI clip in an animation control. The control plays the clip in the background while the thread
continues executing.

Syntax:

AnimPlay( <hWnd>, <nFrom>, <nTo>,


<nRepeat> ) --> lSuccess

Parameters:

<hWnd> Handle to the animation control.

<nFrom> Zero-based index of the frame where


playing begins. The value must be less than 65,536.
A value of zero means begin with the first frame in the
AVI clip.

<nTo> Zero-based index of the frame where playing


ends. The value must be less than 65,536. A value of
-1 means end with the last frame in the AVI clip.

<nRepeat> Number of times to replay the AVI clip. A


value of -1 means replay the clip indefinitely.

Returns:

<lSuccess> Returns .t. if successful.

2.1.13 AnsiToOem()

AnsiToOem() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 15

Translates a Window string into the OEM MsDos

Syntax:

AnsiToOem( <cWindowText> ) -->


<cOemText>

Parameters:

<cWindowText> The Window string to convert into


OEM format.

Returns:

<cOemText> The equivalent OEM string.

Observations:

Normally all the data that you capture from MsDos


into a DBF is stored as OEM text. In this situation
you may call OemToAnsi() to properly review it from
inside Windows.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 16

Text that is captured from Windows is in Ansi format.


To use it from MsDos later, store it as the result of
AnsiToOem().

2.1.14 AnsiToWide()

AnsiToWide() Previous Top Next

Translates an Ansi string into the unicode wide equivalent string.

Syntax:

AnsiToWide( <cAnsiStr> ) --> <cWideStr>

Parameters:

<cAnsiStr> The ansi string to convert into its


equivalent unicode wide string.

Returns:

<cWideStr> The equivalent unicode wide string.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 17

See Also:

WideToAnsi()

2.1.15 Alert()

Alert() Previous Top Next

Windows equivalent Clipper Alert function

Syntax:

Alert( [cMsg], [aLegends], [cTitle],


[nDefault], [cIcon] )

Parameters:

<cMsg> Message to show in the dialog box

<aLegends> String array with the buttons legend

<cTitle> Dialog title

<nDefault> Default button

<xIcon> Icon File name or Icon resource name or


Icon identifier

Returns:

<nButton> Pushed button.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 18

Observations:

The new Alert functions implements automatically


scroll bars if the size of the message is large and also
lets you perform cut & paste operations to the dialog
message.

Icon identifiers:

IDI_APPLICATION 32512

IDI_HAND 32513

IDI_QUESTION 32514

IDI_EXCLAMATION 32515

IDI_ASTERISK 32516

2.1.16 aMidiDevices()

aMidiDevices() Previous Top Next

It describes the capabilities of to MIDI output device

Syntax:

aMidiDevices() \\ acMidiDevices

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 19

None

Returns:

It Returns a strings array with the capabilities Midi


that the team has.

2.1.17 AnsiLower()

AnsiLower() Previous Top Next

Converts the given character string to lowercase

Syntax:

AnsiLower(<cString>) \\cLowerString

The driver of the elected language ago the conversion,


if it is elected in the Panel of Control. If it is not this
way, Windows uses its own function.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 20

Parameters:

<cString> String to convert. It can only be a


character.

Returns:

String in minuscule.

2.1.18 AnsiUpper()

AnsiUpper() Previous Top Next

Converts the given character string to uppercase

Syntax:

AnsiUpper(<cString>) \\cUpperString

Parameters:

The driver of the elected language ago the conversion,

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 21

if it is elected in the Panel of Control. If it is not this


way, Windows uses its own function.

<string> String to convert. It can only be a character.

Returns:

String in uppercase.

2.1.19 aOData()

aOData()() Previous Top Next

Returns an array with all an Object Class DATA names

Syntax:

aOData( <oObject> ) -->


<aClassDataNames>

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 22

<oObject> This is an Object.

Returns:

<aData> This function returns an array with the


Names of all the Object Class Data.

Observations:

None.

Sample:

local aObjClsNames := aOData( oObject )

2.1.20 AppendMenu()

AppendMenu() Previous Top Next

Appends a new item to the end of a menu.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 23

Syntax:

AppendMenu(<hMenu>,<nFlags>,; <nFlags>,
<cPrompt> ) --> lSucces

Parameters:

<hMenu> Handle of the menu that we will modify

<nFlags> Flags that will indicate to the menu that


item class wants

MF_ENABLED 0 Normal
MF_GRAYED 1 Disabled and gray
MF_DISABLED 2 Disabled and not gray
MF_BITMAP 4 Single Bitmap
MF_CHECKED 8 It marks of elect
MF_POPUP 16 The item has menu associate popup
MF_BREAK 64 Menu with several columns
MF_OWNERDRAW 256 The item has own drawing
MF_SEPARATOR 2048 Separador
MF_HELP 16384 Item to right of horizontal bar

<cPrompt> Text of the item

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 24

Returns:

<lSucces> .t. if the function is executed with


normality.

2.1.21 Arc()

Arc() Previous Top Next

Draws an elliptical arc

Syntax:

Arc( <hDC>, <nLeftRect>, <nTopRect>,


<nRightRect>, <nBottomRect>,
<nXStartArc>, <nYStartArc>,<nXEndArc>,
<nYEndArc> ) --> <lSuccess>

Parameters:

<hDC> Identifies the device context where the arc is


drawn

<nLeftRect> The dimensions of the rect where the


arc is placed

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 25

<nTopRect>

<nRightRect>

<nBottomRect>

<nXStartArc> The coordinates of starting point of the


arc.

<nYStartArc>

<nXEndArc> The coordinates of ending point of the


arc.

<nYEndArc>

Returns:

<lSuccess> A logical value indicating that the


operation was performed successfully.

2.1.22 ARead()

ARead() Previous Top Next

To reconstruct an array from a coded string.

Syntax:

ARead( <cInfo> )--> aArray

In the process of having saved of a window and their


controls we use the function ASave () in case one of
the data to save are an array. Logically when you
recover the information there will be an equivalent

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 26

function. This equivalent function is ARead () .

Parameters:

<cInfo> String coded previously by the function


ASave

Returns:

<aArray> Reconstructed Array

Observations:

In the own function ARead () is carried out calls


recursives for the case that one of the elements of the
array it was an array in turn.

2.1.23 Arg()

Arg() Previous Top Next

To recover on-line given parameters of commands

Syntax:

Arg(<nCmdLineOrder> ) -->
cExeCommandLineParam

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 27

<nCmdLineOrder> Number of parameter that we


want to recover

Returns:

<cExeCmdLParam> Recovered parameter

Sample:

? cParam1

? cParam2

? cParam3

MsgInfo( "Total number of command line parameters:


" +; Str( PCount() ) )

Another()

// To retrieve the name of your EXE use this:

MsgInfo( GetModuleFileName( GetInstance() ) )

//----------------------------------------------------------------------------
//

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 28

MsgInfo("From everywhere you can use nArgC() - 1 "


+ ; "to retrieve the same value as PCount() " + ;"at the
beginning of the app" )

for n = 1 to nArgC() - 1 // Windows always provides

MsgInfo( Arg ( n ) ) // one extra parameter

next

//----------------------------------------------------------------------------
//

2.1.24 ASave()

ASave() Previous Top Next

To code an array in a string.

Syntax:

ASave( <aArray> ) --> cInfo

In the process of having saved of a window and their


controls we use the function ASave() in case one of
the data to save are an array.

Parameters:

<aArray> Array to code.

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 29

<cInfo> String containing the coded array.

Observations:

The coded string includes in the first character one To


of array and a built binary character with the function
of Clipper I2Bin () that indicates us the longitude of
the string more 2 elements and the longitude of the
array "A" + I2Bin( 2 + Len( cInfo )) +; I2Bin( Len
( aArray ) ) + cInfo

2.1.25 ASend()

ASend() Previous Top Next

Send an OOP message to an array of Objects

Syntax:

ASend( <aArray>, <cMsg>,


<uParam1>, ..., <uParamN> )

Parameters:

<aArray> An array of objects.

<cMsg> A literal describing the OOP message to


send to the object. It is the same as doing the
following code, but in a much more efficient way, and
without having to know in advance which OOP

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 30

message will be sent to the array of objects:

for n = 1 to Len( <aArray> )

<aArray>[ n ]:<cMsg>( <uParam1>, ..., <uParamN> )

next

<uParam1> A list of optional parameters to be


supplied as parameters to the method. <uParamN>

Returns:

nil

See also:

OSend()

2.1.26 ATang()

ATang() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 31

Calculates the angle whose tangent is a specified number.

Syntax:

ATang( <nTang> ) --> nAngle

Parameters:

<nTang> The tangent.

Returns:

<nAngle> The angle whose tangent is the specified


value expressed in radiants.

Observations:

Sample:

nAng := ATang( 0.5 )

2.1.27 aTcBrwPosRec()

aTcBrwPosRec() Previous Top Next

To calculate coordinated of the edition cell in a TCBrowse

Syntax:

aTCBrwPosRec(<hWnd>, <nRow>,
<nCol>,<nWidth>, <hFont> ) \\ aCoors

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 32

Function used in the class TCBrowse to determine


the coordinates where the active cell will be
published. This function is used in the method: :
EditCol ().

Parameters:

<hWnd> Handle of the object TCBrowse.

<nRow> Active line of the TCBrowse.

<nCol> Active column of the TCBrowse.

<nWidth> Width of the cell to publish.

<hFont> Handle of the object font of the TWBrowse

Returns:

<aCoors> Array of four numbers that represent the


coordinates calculated of the cell of edition of the
TWBrowse. nTop, nLeft, nBottom, nRight

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 33

2.1.28 aTreeBmps()

aTreeBmps() Previous Top Next

Returns an array with the default tree bitmaps

Syntax:

aTreeBmps()--> <aBmpHandles>

Parameters:

None

Returns:

<aBmpHandles> An array with the handles of the


bitmaps used to display the FiveWin trees.

2.1.29 AuxGetDev()

AuxGetDev() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 34

Number of Auxiliary devices.

Syntax:

AuxGetDev() --> nDevices

Parameters:

None

Returns:

<nDevices> Number of Auxiliary devices.

Sample:

SAMPLES\MMEDIA\MMEDIA.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 35

2.1.30 Auxgetvol()

Auxgetvol() Previous Top Next

Volume of output of a device

Syntax:

AuxGetVol(<nIdDevice>, <nVolLeft>,
<nVolRight> ) --> nSuccess

Parameters:

<nIdDevice> Identifier of the specified device.

<nVolLeft> Volume of the left speaker.

<nVolRight> Volume of the right speaker

Returns:

<nSucces> returns zero if the function was


successful. Otherwise, it returns an error number.
Possible error returns are:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 36

2.1.31 Auxsetvol()

Auxsetvol() Previous Top Next

Sets the volume in an auxiliary output device

Syntax:

AuxSetVol(<nIdDevice>,; <nVolLeft>,;
<nVolRight> ) --> nSuccess

Parameters:

<nIdDevice> Identifier of the specified device.

<nVolLeft> Volume of the left speaker.

<nVolRight> Volume of the right speaker

Returns:

<nSucces> Returns zero if the function was


successful.Otherwise, it returns an error number.
Possible error returns are:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 37

Observations

To see if the device can manage volume with the


function AuxGetCaps ()

2.1.32 aWBrwRowDim()

aWBrwRowDim() Previous Top Next

Calculates the vertical coordinates of a row in a Browse.

Syntax:

aWBrwRowDim( <hWnd>, <nRow>, <hFont> )


--> aCoords

Parameters:

<hWnd> Handle of the object TWBrowse.


<nRow> Active line of the TWBrowse.
<hFont> Handle of the object font of the TWBrowse

Returns:

<aCoords> Array of top and bottom vertical


coordinates of the specified row.

2.2 B

2.2.1 B2Bin()

B2Bin() Previous Top Next

Converts a byte into a string 1 byte len.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 38

Syntax:

B2Bin( <nValue> ) --> <cValue>

Parameters:

< nValue > This is a number which is converted to a


BYTE string

Returns:

<cValue> The equivalent <nValue> as a string.

Sample:

cVar := B2Bin( 1 )

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 39

2.2.2 BarAdjust()

BarAdjust() Previous Top Next

Adjust the bar to the new dimension of its container.

Syntax:

BarAdjust( <hWnd>, <nMode>, <lMsgBar>,


<nHeight> ) --> nil

Parameters:

<hWnd> The Window handle of the Button Bar.


<nMode> The currently button Bar nMode Selected.
<lMsgBar> If the container window of the Button bar
has a message Bar.
<nHeight> The height of the message Bar.

Returns:

Nil

2.2.3 Barinvert()

Barinvert() Previous Top Next

Effect of pressing the button bar.

Syntax:

BarInvert(<hWnd> ) --> nil

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 40

<hWnd> Handle of the button bar

Returns:

nil

2.2.4 Barpaint()

Barpaint() Previous Top Next

It draws the buttons bar

Syntax:

BarPaint(<hWnd>, <hDC> ) --> nil

Parameters:

<hWnd> Handle of the buttons bar

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 41

<hDC> Device context of the buttons bar

Returns:

Nil

2.2.5 BeginPaint()

BeginPaint() Previous Top Next

Prepares a window for start painting

Syntax:

BeginPaint( <hWnd>, @<cPS> ) --> <hDC>

Parameters:

<hWnd> Identifies the window to be repainted.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 42

<cPS> A variable that will receive a WinApi


PAINTSTRUCT as a string. This variable has to be
supplied by reference.

Returns:

<hDC> The device context for the given window.

Comments:

The BeginPaint function automatically sets the


clipping region of the device context to exclude any
area outside the update region. The update region is
set by the InvalidateRect or InvalidateRgn function and
by the system after sizin, moving, creating, scrolling,
or any other operation that affects the client area. If
the update region is marked for erasing, BeginPaint
sends a WM_ERASEBKGND message to the
window.

An application should not call BeginPaint except in


response to a WM_PAINT message. Each call to the
BeginPaint function must have a corresponding call to
the EndPaint function.

If the caret is in the area to be painted, BeginPaint


automatically hides the caret to prevent it from being
erased.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 43

If the window's class has a background brush,


BeginPaint will use that brush to erase the
background of the update region before returning.

2.2.6 Bin2D()

Bin2D() Previous Top Next

Converts a string into a 4 byte double precision numeric

Syntax:

Bin2d(<cValue> ) --> nValue

Parameters:

<cValue> String to be converted into a double


numeric

Returns:

Double numeric

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 44

2.2.7 BinToN()

BinToN() Previous Top Next

Converts an array of binary digits (expressed as logical values, .t. for 1 and .f. for 0) to its decimal integer
value.

Syntax:

BinToN( <aBin> ) --> <nValue>

Parameters:

< aBin > This is the array of binary digits to convert

Returns:

<nValue> The integer value result of the conversion.

Sample:

nVar := BinToN( { .f., .t., .f., .f. } )

2.2.8 Bindtoport()

Bindtoport() Previous Top Next

A Socket associates with a certain port

Syntax:

BindToPort(<nSocket>,<nPort> ) -->
lSuccess

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 45

Parameters:

<nSocket> Socket number

<nPort> Port number

Returns:

<lSuccess> .t. if the association is made with


success

2.2.9 BinToC()

BinToC() Previous Top Next

Converts an array of binary digits (expressed as logical values, .t. for 1 and .f. for 0) to a string of "1" and
"0" separated by a space every four characters.

Syntax:

BinToC( <aBin>, <lSep> ) --> <cValue>

Parameters:

< aBin > This is the array of binary digits to convert


< lSep > If .f. a space is not inserted in the result
every four characters

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 46

<cValue> The string result of the conversion.

Sample:

cVar := BinToC( { .f., .t., .f., .f. } )

2.2.10 Bitblt()

Bitblt() Previous Top Next

It copies a bitmap from a context device to another context device

Syntax:

BitBlt(<hdcDest>,; <nCol>,<nRow>,;
<nWidth>,<nHeight>,;<hdcOrg>,;
<nColOrg>,<nRowOrg>,; <dwRop> ) -->
lResult

Parameters:

<hdcDest> Context device where the image will be


transferred

<nCol> Destination column

<nRow> Destination line

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 47

<nWidth> Wide of destination

<nHeight> High of destination

<hdcOrg> Device of context origin of the image

<nColOrg> Column origin

<nRowOrg> Line origin

<dwRop> Specifies the raster operation to be


performed.

BLACKNESS Turns all output black.


DSTINVERT Inverts the destination bitmap.
MERGECOPY Combines the pattern and the source bitmap by using the Boolean AND operator.
MERGEPAINT Combines the inverted source bitmap with the destination bitmap by using the
Boolean OR operator.
NOTSRCCOPY Copies the inverted source bitmap to the destination.
NOTSRCERASE Inverts the result of combining the destination and source bitmaps by using the
Boolean OR operator.
PATCOPY Copies the pattern to the destination bitmap.
PATINVERT Combines the destination bitmap with the pattern by using the Boolean XOR operator.
PATPAINT Combines the inverted source bitmap with the pattern by using the Boolean OR operator.
Combines the result of this operation with the destination bitmap by using the Boolean OR operator.
SRCAND. Combines pixels of the destination and source bitmaps by using the Boolean AND
operator
SRCCOPY Copies the source bitmap to the destination bitmap.
SRCERASE Inverts the destination bitmap and combines the result with the source bitmap by using
the Boolean AND operator.
SRCINVERT Combines pixels of the destination and source bitmaps by using the Boolean XOR
operator.
SRCPAINT Combines pixels of the destination and source bitmaps by using the Boolean OR
operator.
WHITENESS Turns all output white. #define SRCCOPY 0x00CC0020L #define SRCPAINT
0x00EE0086L #define SRCAND 0x008800C6L #define SRCINVERT 0x00660046L #define SRCERASE
0x00440328L #define NOTSRCCOPY 0x00330008L #define NOTSRCERASE 0x001100A6L #define

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 48

MERGECOPY 0x00C000CAL #define MERGEPAINT 0x00BB0226L #define PATCOPY 0x00F00021L


#define PATPAINT 0x00FB0A09L #define PATINVERT 0x005A0049L #define DSTINVERT 0x00550009L
#define BLACKNESS 0x00000042L #define WHITENESS 0x00FF0062L

Returns:

<lResult> .t. if the function was executed without


problems.

2.2.11 BringWindo()

BringWindo() Previous Top Next

Bring the window to the top of a stack of overlapping windows

Syntax:

BringWindo(< hWnd > ) --> lResult

Parameters:

< hWnd > Handle of window

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 49

Returns:

.t. if the operation was sucesfully

2.2.12 Browse()

Browse() Previous Top Next

Automatic full featured FiveWin browse.

Syntax:

Browse( <cTitle>, <cListName>, <bNew>,


<bModify>, <bDelete>,;
<bSearch>, <bList>, <aColSizes> ) -->
nil

Parameters:

<cTitle>The principal title for the Fivewin browse.

<cListName> This is the name of the data to see in


browse.

<bNnew> This CodeBlock is used to add a New


Record.

<bModify> This CodeBlock is used to Modify the


record.

<bDelete> This CodeBlock is used to delete the


record.

<bSearch> This CodeBlock is used to search for

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 50

data.

<bList> This CodeBlock is used to list to the printer.

<aColSizes> The sizes of the columns.

Observations

This is a self contained Clipper-Fivewin traditional


dBase-III-Plus like Browse, very useful for prototyping
applications.

Sample:

cTitle := "This is a FiveWin Browse Sample."


cListName := "NAME, ADDRESS, TELEPHONE"
bNew := { || MsgInfo( "Add a New Record" ) }
bModify := { || MsgInfo( "Modify an existing record" ) }

bDelete := { || MsgInfo( "Delete a record" ) }


bSearch := { || MsgYesNo( "Do you want to search
some thing? " ) }
bList := { || MsgYesNo( "Do you want a report list?" ) }

aColSizes := { 30, 30, 20 }

DBUSEAREA(.T., "DBFNDX", "NAMES")

Browse( cTitle, cListName, bNnew, bModify, bDelete,


bSearch, bList, aColSizes )

2.2.13 Btndisable()

Btndisable() Previous Top Next

It draws a disabled button.

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 51

BtnDisable(<hWnd>, <hDC> )

It presents the same image of the button with bitmap


but in typical gray tones of disabled options.

Parameters:

<hWnd> Handle of the button.


<hDC> The device context in which the button has to
be drawn.

Returns:

Nil

2.2.14 BtnPaint()

BtnPaint() Previous Top Next

Paints the contents of a bitmapbutton.

Syntax:

BtnPaint( <hWnd>, <hDib1>, <hPalette1>,


<hDib2>, <hPalette2>, <lPressed>,
<lAdjust> ) --> nil

Parameters:

<hWnd> The handle of the window which is painting

<hDib1> The DIB handle for the normal status.

<hPalette1> The palette handle for the normal status.

<hDib2> The DIB handle for the pressed status.

<hPalette2> The palette handle for the pressed


status.

<lPressed> If the button is being pressed.

<lAdjust> If the bitmap has to be adjusted on the


surface.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 52

2.2.15 BuildCommDCB()

BuildCommDCB() Previous Top Next

Translates a device string into a control block

Syntax:

BuildCommDCB( <cInfoDef>,
@<cDevBlock> ) --> lSuccess

The BuildCommDCB function translates a device-


definition string into appropriate serial Device Control
Block (DCB) codes.

Parameters:

<cInfoDef> A string that specifies device-control


information. The string has the same form as the
parameters used in the MsDos mode command.

<cDevBlock> A string passed by reference that will


receive the translated string. Its structure defines the
control settings for the serial-communications device.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 53

Returns:

.t. if everything was ok.

Observations

This is a WinApi communication function.

2.3 C

2.3.1 C2Hex()

C2Hex() Previous Top Next

Converts a byte into a hex string (2 chars) _

Syntax:

C2Hex( <cChar> ) --> <cHex>

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 54

<cChar> A one character string.

Returns:

<cHex> A two character hex string.

Sample:

MsgInfo( C2Bin( "X" ) ) // Returns a "58" hex

See also:

I2Hex()

2.3.2 CallDll()

CallDll() Previous Top Next

Calls a function placed into a DLL

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 55

CallDll( <cFuntionDef>, <uParam1,...> )


--> <uResult>

Parameters:

<cFunctionDef> A special string which holds all the


necessary information to execute a certain action.
This string is automatically produced by the function
GetProcAddress().

<uParam1,...> Are the parameters supplied to the


called function. This depends on the DLL function we
are going to call.

Returns:

The returned value from the DLL function.

Observations

See INCLUDE\\DLL.CH for the xBase way of doing


this DLLs functions calls.

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 56

GetProcAddress()

2.3.3 Calldll32()

Calldll32() Previous Top Next

It calls to a function that this in a DLL of 32 bits

Syntax:

CallDll32(<cFuntionDef>,
<uParam1>,... ) --> uResult

Parameters:

<cFuntionDef> Function to which we call

<uParam1>,... Last parameters to the function

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 57

Returns:

<uResult> Uncertain value

Sample:

Source Code:

SOURCE\WINAPI\CALLDLL.C

2.3.4 CallWindowProc()

CallWindowProc() Previous Top Next

Passes messages information to a specific procedure

Syntax:

CallWindowProc( <nWndProc>, <hWnd>,


<nMsg>, <nWParam>,<nLParam> ) -->
<uReturn>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 58

The CallWindowProc function passes message


information to the specified window procedure.

Parameters:

<nWndProc> Specifies the procedure-instance


address of the previous window procedure.

<hWnd> Identifies the window that will receive the


message.

<nMsg> Specifies the message.

<nWParam> Specifies 16 bits of additional message-


dependent information.

<nLParam> Specifies 32 bits of additional message-


dependent information.

Returns:

The return value specifies the result of the message


processing and depends on the message sent.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 59

Observations

The CallWindowProc function is used for window


subclassing. Normally, all windows with the same
class share the same window procedure. A subclass
is a window or set of windows belonging to the same
window class whose messages are intercepted and
processed by another window procedure (or
procedures) before being passed to the window
procedure of that class.

The SetWindowLong function creates the subclass by


changing the window procedure associated with a
particular window, causing Windows to call the new
window procedure instead of the previous one. Any
messages not processed by the new window
procedure must be passed to the previous window
procedure by calling CallWindowProc. This allows you
to create a chain of window procedures.

See also:

SetWindowLong()

2.3.5 CaretFLine()

CaretFLine() Previous Top Next

Puts a caret on a GTF line.

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 60

CaretFLine( <hWnd>, <hDC>, <nRow>,


<nCol>, <nMargin>, <nAlign>, <aText>,
<aFonts>, [<nPos>], <lInsert>,
<lVisible> ) --> nil

Parameters:

<hWnd> The handle of the window where the text


is drawn.
<hDC> The device context where the text is
drawn.
<nRow> The row where the caret is to be drawn.
<nCol> The col where the caret is to be drawn.
<nMargin> The margin of the text.
<nAlign> The alignment of the text (ES_LEFT,
ES_RIGHT or ES_CENTER).
<aText> The internal implementation of a line of
GTF text (TFGet:oLine:aText).
<aFonts> The fonts used in the line of GTF text
(TFGet:oLine:aFonts).
<nPos> ???.
<lInsert> The insert status of the caret.
<lVisible> ???.

Returns:

Nil

2.3.6 cArgV()

cArgV() Previous Top Next

Retrieves a certain command line parameter

Syntax:

cArgV( <nOrder> ) -->


<cCommandLineParam>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 61

Retrieves a command line parameter supplied to the


application (like in C argv).

Parameters:

<nOrder> The parameter order supplied to the


application.

Returns:

<cCommandLineParam> A string with the specified


command line param.

See also:

nArgC()

2.3.7 cChr2Data()

cChr2Data() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 62

It converts to minuscule all the letters except the 2ª...

Syntax:

cChr2Data(<cstring> ) --> cString

It converts to minuscule all the letters except the


second that converts in uppercase

Parameters:

<cstring> String to convert

Returns:

<cString> Converted String

2.3.8 cCtrl2Chr()

cCtrl2Chr() Previous Top Next

Generates a string with the control structure

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 63

Syntax:

cCtrl2Chr( <nTop>, <nLeft>, <nBottom>,


<nRight>,<nId>, <nStyle>, <cClassName>,
<cCaption> ) --> <cControlString>

This function translates information from a windows


control into a special string to be used for created
memory windows resources templates.

Parameters:

<nTop> Control coordinates.

<nLeft>,

<nBottom>

<nRight>

<nId> Control numeric ID identification.

<nStyle> Control numeric style description.

<cClassName> The control winapi class name.

<cCaption> The caption of the control.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 64

Returns:

A string with binary information that describes those


values.

Observations

It is used internally by FiveWin when creating


DialogBoxes in runtime.

See also:

See TControl:cToChar() METHOD.

2.3.9 cDlg2Chr()

cDlg2Chr() Previous Top Next

It makes a string to makes a dialog box

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 65

cDlg2Chr(<nLenaControls>,; <nTop>,;
<nLeft>,; <nHeight>,; <nWidth>,;
<cCaption>,; <nStyle> ) --> cResult

Parameters:

<nLenaControls> Number of controls of the dialog


box

<nTop> Superior coordinate of the dialog box

<nLeft> Left coordinate of the dialog box

<nHeight> High of the dialog box

<nWidth> Wide of the dialog box

<cCaption> Title

<nStyle> Style

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 66

Dialog structure

2.3.10 cFileDisc()

cFileDisc() Previous Top Next

Retrieves the drive from a filename with path

Syntax:

cFileDisc( <cFileName> ) --> <cDrive>

Parameters:

<cFileName> The filename whose drive to retrieve, if


the drive has been specified inside its filename.

Returns:

<cDrive> A two characters string with the format: A:,


B:, C:, etc...

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 67

2.3.11 cFileExt()

cFileExt() Previous Top Next

Retrieves the extension from a filename

Syntax:

cFileExt( <cFileName> ) --> <cExtName>

Parameters:

<cFileName> The filename whose extension to


retrieve, if the extension has been specified inside its
filename.

Returns:

<cExtName> A three characters string with the


extension name.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 68

2.3.12 cFileMask()

cFileMask() Previous Top Next

Retrieves the mask from a filename if specified

Syntax:

cFileMask( <cFileName> ) --> <cMask>

Parameters:

<cFileName> The filename whose mask to retrieve, if


a mask has been specified inside its filename. A
mask is a group of wildcards ( "*.*", "?...", etc...).

Returns:

<cMask> The mask if specified.

2.3.13 cFileName()

cFileName() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 69

Retrieves the filename without its path

Syntax:

cFileName( <cFullFileName> ) -->


<cFileName>

Parameters:

<cFullFileName> The full filename including path and


optional extension.

Returns:

<cFileName> Just the filename specified inside the


full filename.

2.3.14 cFileNoExt()

cFileNoExt() Previous Top Next

Retrieves the filename without path and extension

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 70

Syntax:

cFileNoExt( <cFileName> ) -->


<cFileName>

Parameters:

<cFileName> The full filename including path and


optional extension.

Returns:

<cFileName> Just the filename specified inside the


full filename, without path and extension.

2.3.15 cFileNoPath()

cFileNoPath() Previous Top Next

Retrieves the filename without path (as cFileName()) _

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 71

cFileNoPath( <cFullFileName> ) \\
<cFileName>

Parameters:

<cFullFileName> The full filename including path and


optional extension.

Returns:

<cFileName> Just the filename specified inside the


full filename.

2.3.16 cFilePath()

cFilePath() Previous Top Next

Retrieves the path from a filename with path

Syntax:

cFilePath( <cFileName> ) \\ <cPath>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 72

Parameters:

<cFileName> The full filename including path and


optional extension.

Returns:

<cPath> Just the path name specified inside the full


filename.

2.3.17 cFileSubDir()

cFileSubDir() Previous Top Next

Retrieves the subdir name from a filename

Syntax:

cFileSubDir( <cFileName> ) -->


<cDirName>

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 73

<cFileName> The full filename including path and


optional extension.

Returns:

<cDirName> Just the path name specified inside the


full filename, excluding the drive name.

2.3.18 cFreadLine()

cFreadLine() Previous Top Next

It reads you line of a text file

Syntax:

cFreadLine(<nHandle> ) --> cLine

Parameters:

<nHandle> Handle of the file of open text

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 74

Returns:

<cLine> Read line with possibility that they are


bigger than 1 k.

2.3.19 cGetDir()

cGetDir() Previous Top Next

Dialog box to select directory.

Syntax:

cGetDir( <cTitle>, [<cInitDir>],


<nClsId>, <cTitle2>, <nFlags> ) -->
cDir

Parameters:

<cTitle> Title of the dialog box

<cInitDir> Initial directory

<nClsId> ClsId of a special folder location

<cTitle2> Prompt of the folder selection tree

<nFlags> Flags for setting the selection dialog


behavior

Returns:

<cDir> Selected directory

Sample:

cDirName := cGetDir()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 75

MsgInfo( cDirName )
MsgInfo( LFN2SFN( cDirName ) )

2.3.20 cGetDir32()

cGetDir32() Previous Top Next

Dialog box to select directory.

Syntax:

cGetDir32(<cTitle>, [<cInitDir>]) -->


cDir

This function invokes the 32 bits Windows default


select directory DialogBox.

This function only works on Win 95/98 and NT


machines. The file RunDlg32.exe must be present on
every PC in the \windows or \windows\system
directory.

Parameters:

<cTitle> Title of the dialog box

<cInitDir> Initial directory

Returns:

<cDir> Selected directory

2.3.21 cGetExpression()

cGetExpression() Previous Top Next

General build expression DialogBox

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 76

Syntax:

cGetExpression( <cInitialExpression>,
<cTitle> ) --> <cExpression>

Parameters:

<cInitialExpression> The default expression that


appears when invoking the cGetExpression()
DialogBox.

<cTitle> The title for the DialogBox. By default it


shows "Expression builder".

Returns:

<cExpression> The expression built by the user.

Observations

This function is now only available from the IDE. If you


want to use it in your application you have to copy the
RC for the DialogBox from IDE.DLL to your
application.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 77

Sample:

? cGetExpression( "Customer->Name",; "Select a


expression to search for" )

2.3.22 cGetFile()

cGetFile() Previous Top Next

File selection standard DialogBox.

Syntax:

cGetFile( <cFileMask>, <cTitle>,


[<nDefaultMask>],
[<cInitialDirectory>], [<lSave>],
[<lLongNames>], [<nFlags>],
[<cInitialFile>] ) --> <cFileName>

This function invokes the Windows default select a file


DialogBox.

Parameters:

<cFileMask> A string that contains a default


filename, or a list of possible file types to select:

? cGetFile( "Hello.prg", "Select a file" )


In this case "Hello.prg" is shown as the default
filename.

If you want to specify some different types of files the


following format must be used:

"DataBase | *.dbf |" + ;


"Index | *.cdx |" + ;

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 78

"Bitmap | *.bmp"

<cTitle> The title of the DialogBox. By default "Select


a file" is shown.

<nDefaultMask> An optional numeric value in case


that you want to start the DialogBox with a certain file
type selected (if you are using the multiple file types
format). To request lately what was the file type
selected, you may use the function nGetFileFilter().

<cInitialDirectory> The initial directory where to start


looking for files. By default it uses ".-->"

<lSave> If true then the SaveFilename dialog will be


displayed

<lLongNames> If true then then the dialog will show


the files with his longname format

<nFlags> Special flag to use on the dialog (consult


WinAPI documentation)

<cInitialFile> The filename used to initialize the File


Name edit control

Returns:

A string with the name of the filename selected.

See also:

nGetFileFilter()

2.3.23 cGetFile32()

cGetFile32() Previous Top Next

File selection standard 32 bits DialogBox

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 79

cGetFile32( <cFileMask>, <cTitle>,


[<nDefaultMask>],
[<cInitialDirectory>], [lSave],
[nFlags], [cInitialFile] ) -->
<cFileName>

This function invokes the 32 bits Windows default


select a file DialogBox.

This function only works on Win 95/98 and NT


machines. The file RunDlg32.exe must be present on
every PC in the \windows or \windows\system
directory.

Parameters:

<cFileMask> A string that contains a default


filename, or a list of possible file types to select:

? cGetFile( "Hello.prg", "Select a file" )

If you want to specify some different types of files the


following format must be used:

"DataBase | *.dbf |" + ;

"Index | *.cdx |" + ;

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 80

"Bitmap | *.bmp"

<cTitle> The title of the DialogBox. By default "Select


a file" is shown.

<nDefaultMask> An optional numeric value in case


that you want to start the DialogBox with a certain file
type selected (if you are using the multiple file types
format). To request lately what was the file type
selected, you may use the function nGetFileFilter().

<cInitialDirectory> The initial directory where to start


looking for files. By default it uses ".\\"

<lSave> If true then the SaveFilename dialog will be


displayed

<nFlags> Special flag to use on the dialog (consult


WinAPI documentation)

<cInitialFile> Initial file to use

Returns:

A string with the name of the filename selected.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 81

See also:

nGetFileFilter()

2.3.24 cGetNewAlias()

cGetNewAlias() Previous Top Next

To obtain an Alias not used to open a .DBF

Syntax:

cGetNewAlias(<cAlias> ) --> cNewAlias

Parameters:

<cAlias> Name of which we will begin to build an


ALIAS that not this in use.

Returns:

<cNewAlias> New Alias that we will use to assign to


a new .DBF

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 82

Sample:

cGetNewAlias( "Base" ) \\ "Base001"

2.3.25 ChangeProc()

ChangeProc() Previous Top Next

Changes the procedure of a Window

Syntax:

ChangeProc( <hWnd> ) \\ <nOldProc>

This function replaces the procedure that controls the


behavior of a function, for a FiveWin special one.

RestProc() replaces again this new procedure for the


old one.

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 83

<hWnd> The handle of the window to change its


proc.

Returns:

<nOldProc> A number ( long pointer ) of the old


procedure.

Observations

This function is used internally by FiveWin to


automatically subclass windows and controls and to
make them compatible with the OOPS architecture of
FiveWin.

2.3.26 Checkmenu()

Checkmenu() Previous Top Next

Add or remove checkmark at pop-up menu item

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 84

CheckMenui(<hMenu> ,; <nItemId>,;
<nFlags> ) \\ nLastState

Parameters:

<hMenu> The menu proprietor's Handle

<nItemId> Identifier of the menuitem

<nFlags> It specifies the API like to obtain the


position of the item in the menu: MF_BYCOMMAND
or MF_BYPOSITION

Returns:

<nLastState> Previous state

2.3.27 ChildLevel()

ChildLevel() Previous Top Next

Returns 1 if the first parameter is an object of the same class or of a derived class of the second
parameter, otherwise it returns 0.

Syntax:
ChildLevel( <oObject>, <oClass> ) -->
nResult

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 85

Parameters:

<oObject> The object to find the child level of

<oClass> The object for the reference class

Returns:

<nResult> The child level (1 or 0).

2.3.28 Childwindo()

Childwindo() Previous Top Next

Find child window at a specified point

Syntax:

ChildWindo(<hWnd>, <aPoint> ) \\
hChildWnd

Parameters:

<hWnd> Handle of parent window

<aPoint> Array with two values.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 86

Returns:

<hChildWnd> Handle of the child window if found. Nil


in otherwise.

2.3.29 ChooseColor()

ChooseColor() Previous Top Next

Color selection standard DialogBox

Syntax:

ChooseColor( <nRGBDefaultColor>,
<nFlags> ) --> <nRGBColor>

This function calls the Windows standard color


selection DialogBox.

Parameters:

<nRGBDefaultColor> The color that will appear


automatically when the DialogBox starts.

<nFlags> An optional numeric value for some flags:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 87

#define CC_PREVENTFULLOPEN 4

Disables the possibility of defining user defined


colors. FiveWin by default allows user defined colors.

Returns:

<nRGBColor> The RGB value of the color selected. If


no selection is done, nRGBDefaultColor is returned.

Sample:

? ChooseColor( CLR_CYAN )

2.3.30 ChooseFont()

ChooseFont() Previous Top Next

Font selection standard DialogBox.

Syntax:

ChooseFont( <aPreviousFont>,
<@nRGBColor>, <hPrinterDC>, <nFlags> )
--> <aFont>

This function calls the Windows standard font


selection DialogBox.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 88

This function is automatically called from TFont():


Choose() METHOD and automates the process of
providing parameters.

Also you may call TWindow():SelFont() METHOD for


a much easier way of managing this.

Parameters:

<aPreviousFont> An array with the default font


description to show as selected when invoking the
DialogBox. These are the elements of this array:

#define LF_HEIGHT 1
#define LF_WIDTH 2
#define LF_ESCAPEMENT 3
#define LF_ORIENTATION 4
#define LF_WEIGHT 5
#define LF_ITALIC 6
#define LF_UNDERLINE 7
#define LF_STRIKEOUT 8
#define LF_CHARSET 9
#define LF_OUTPRECISION 10
#define LF_CLIPPRECISION 11
#define LF_QUALITY 12
#define LF_PITCHANDFAMILY 13
#define LF_FACENAME 14

<nRGBColor> A numeric RGB color supplied by


reference where the DialogBox will place the user
color selection.

<hPrinterDC> Handle to the device context of the


printer whose fonts will be listed in the dialog box.

<nFlags> A set of bit flags that you can use to


initialize the dialog box.

Returns:

<aFont> An array that holds the new font definition,


with the same structure as <aDefaultFont>.

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 89

TFont():Choose() and TWindow():SelFont()

2.3.31 Chord()

Chord() Previous Top Next

Draws a chord

Syntax:

Chord( <hDC>, <nLeftRect>, <nTopRect>,


<nRightRect>, <nBottomRect>,
<nXStartLine>, <nYStartLine>,
<nXEndLine>, <nYEndLine> ) -->
<lSuccess>

Parameters:

<hDC> Identifies the device context where to paint

<nLeftRect> The rect of the bounding rectangle where


to place the chord.

<nTopRect>

<nRightRect>

<nBottomRect>

<nXStartLine> The origin and end of the line that


intersects with the ellipse forming

<nYStartLine > the chord.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 90

<nXEndLine>

<nYEndLine>

Returns:

<lSuccess> A logical value indicating if the operation


was performed successfully.

2.3.32 ClassCreat()

ClassCreat() Previous Top Next

Creation of a class for xBase++

Syntax:

ClassCreat( x, y, z, w ) \\ object

Function to create a class. It is used for xBase++


since the original name has more than 10 letters and
xBase doesn't allow it.

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 91

<x> Pointer to the database Alias ()

<y> Array with the address of the object from where it


is executed the call to the function ClassCreat

<z> Array with the names of the data of the object


from where the call is executed to the function
ClassCreat

<w> Array with the names of the methods of the


object from where the call is executed to the function
ClassCreat

Returns:

<ClassCreate( x, y, z, w )>

2.3.33 ClientIp()

ClientIp() Previous Top Next

Client IP address

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 92

ClientIp() --> cIpAddress

This function provides us the address IP of the one


client that has connected with our team server.

Parameters:

None

Returns:

<cIpAdress> String of four numbers separated by


points.

Observations

This function is of connection with the function of the


library Winsock.Dll GetPeerName (nSocket)

Sample:

"100.27.35.42"

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 93

2.3.34 ClientToScreen()

ClientToScreen() Previous Top Next

Converts client coordinates into screen coordinates

Syntax:

ClientToScreen( <hWnd>, <aPoint>) -->


nil

This function converts the client coordinates of a given


point on the screen to screen coordinates.

Parameters:

<hWnd> The handle of the window whose client area


is used for the conversion.

<aPoint> An array of two elements that holds the


coordinates of the point. The two elements of this
array are transformed accordingly with the new
calculated values.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 94

Returns:

Nothing. The result is placed inside the same array.

Sample:

aPoint := { 100, 120 }

ClientToScreen( oWnd:hWnd, aPoint )

? aPoint[ 1 ]

? aPoint[ 2 ]

See also:

ScreenToClient()

2.3.35 CloseClipboard()

CloseClipboard() Previous Top Next

Closes the clipboard

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 95

Syntax:

CloseClipboard() --> <lSuccess>

This function closes the ClipBoard.

Parameters:

None.

Returns:

<lSuccess> A logical value that represents if the


operation was completed successfully.

Observations

A window must close the clipboard after using it in


order to let other windows use it.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 96

See also:

OpenClipboard() SetClipboard() EmptyClipboard()


GetClpData()

2.3.36 CloseComm()

CloseComm() Previous Top Next

Closes the communication device and frees memory

Syntax:

CloseComm( <nDeviceId> ) \\
<lSuccess>

The CloseComm function closes the specified


communications device and frees any memory
allocated for the device's transmission and receiving
queues. All characters in the output queue are sent
before the communications device is closed.

Parameters:

<nDeviceId> Specifies the device to be closed. The


OpenComm function returns this value.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 97

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

See also:

OpenComm() WriteComm() ReadComm()


BuildCommDcb()SetCommStat() FlushComm()
GetCommError()

2.3.37 CloseEnhMetaFile()

CloseEnhMetaFile() Previous Top Next

Closes an enhanced-metafile device context and returns a handle that identifies an enhanced-format
metafile.

Syntax:

CloseEnhMetaFile( <hDC> ) --> hEMF

Parameters:

<hDC> The handle of an enhanced-metafile device


context.

Returns:

<hEMF> The handle of the enhanced metafile. Zero in


case of failure.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 98

2.3.38 CloseMetafile()

CloseMetafile() Previous Top Next

Closes a metafile DC and creates a handle of a metafile

Syntax:

CloseMetaf(<hDC> ) \\ hMetafile

Parameters:

<hDC> Metafile device context to be closed.

Returns:

<hMetafile> Handle of metafile

Sample:

DEFINE WINDOW oWnd

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 99

oWnd:bLClicked := {|| play() }

ACTIVATE WINDOW oWnd

//==================
sub play()
//==================
hDC := oWnd:GetDC()

hdcMeta = CreateMetaFile()

MoveTo(hdcMeta, 10, 10)

LineTo(hdcMeta, 100, 100)

hmf = CloseMetaFile(hdcMeta)

PlayMetaFile(hdc, hmf)

DeleteMetaFile(hmf)

oWnd:ReleaseDC()

ENDSUB

2.3.39 CloseSocket()

CloseSocket() Previous Top Next

It closes a socket

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 100

Syntax:

CloseSocket(<nSocket> ) --> nResult

Parameters:

<nSocket> Socket

Returns:

<nResult> 0 if the operation is carried out correctly.

2.3.40 CloseWindow()

CloseWindow() Previous Top Next

Minimize window.

Syntax:

CloseWindow(<hWnd> )

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 101

Parameters:

<hWnd> Handle of the window

2.3.41 CloseZipFile()

CloseZipFile() Previous Top Next

Closes the ZIP file

Syntax

CloseZipFile() \\ nil

Parameters

None

Returns

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 102

Nothing.

Closes the ZIP file previously in use calling


GetFirstInZip() and GetNextInZip() functions.

2.3.42 cMidiMapper()

cMidiMapper() Previous Top Next

Returns the name of the midi mapper.

Syntax:

cMidiMapper() --> cMapperName

Parameters:

None.

Returns:

<cMapperName> The name of the midi mapper.

2.3.43 cMDIStruct()

cMDIStruct() Previous Top Next

Create structure contains information about the MDIChild

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 103

cMdiStruct(<cClass> ,; <cTitle> ,;
<nTop> ,; <nLeft> ,; <nBottom>,;
<nRight> ,; <nStyle> ) \\ MdiStruct

Parameters:

<cClass> Class Name

<cTitle> Title of child window

<nTop> Upper coordinate

<nLeft> Left coordinate

<nBottom> Bottom coordinate

<nRight> Right coordinate

<nStyle> Window style

Returns:

<mdistruct> Mdi structure to create the mdi child


window.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 104

2.3.44 cMimeDec()

cMimeDec() Previous Top Next

Mime Based Decoding.

Syntax:

cMimeDec(<cIn> ) --> cOut

Parameters:

<cIn> Character string to decodifier

Returns:

<cOut> Decodified character string.

2.3.45 cMimeEnc()

cMimeEnc() Previous Top Next

Mime Based Encoding.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 105

Syntax:

cMimeEnc(<cIn> ) --> cOut

Parameters:

<cIn> Character string to codifier

Returns:

<cOut> Codified character string.

2.3.46 cNewFileName()

cNewFileName() Previous Top Next

Retrieves a new filename using a rootname

Syntax:

cNewFileName( <cRootName>, <cExt> ) --

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 106

> <cNewFileName>

Parameters:

<cRootName> A root name to use to build a new


filename that does not exists.

<cExt> The extension to use to build the new


filename.

Returns:

<cNewFileName> It is a new non-existing filename,


with the format: <cRootName>XXX.<cExt>

2.3.47 cNtxKey()

cNtxKey() Previous Top Next

Returns the index expression of a NTX index file

Syntax:

cNtxKey( <cNtxFileName> ) -->

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 107

<cIndexKey>

This function opens a NTX file and retrieves the ascii


description of the index key used.

Parameters:

<cNtxFileName> The name of the NTX file.

Returns:

<cIndexKey> A string with the key description.

2.3.48 ColorsQty()

ColorsQty() Previous Top Next

Return the total number of colors of the display driver

Syntax:

ColorsQty() --> nColors

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 108

Parameters:

None

Returns:

Total number of colors

2.3.49 ConnectTo()

ConnectTo() Previous Top Next

Establishes a connection to a specified socket.

Syntax:

ConnectTo( <nSocket>, <nPort>, <cIPAddr


) --> nRetCode

Parameters:

<nSocket> The socket number.

<nPort> The port number.

<cIPAddr> The IP address.

Returns:

<nRetCode> Zero if successful, otherwise


SOCKET_ERROR.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 109

2.3.50 Cos()

Cos() Previous Top Next

Calculates the cosine function of an angle.

Syntax:

Cos( <nAngle> ) --> nCos

Parameters:

<nAngle> The angle expressed in radiants.

Returns:

<nCos> The cosine of the specified angle.

Sample:

PI 4:=3.14159265359

nCos := Cos( PI / 4 )

2.3.51 CPUType()

CPUType() Previous Top Next

To check the type of CPU

Syntax:

CPUType() --> nCPUType

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 110

Parameters:

None

Returns:

<nCPUType>

1 8086
2 80286
3 80386
4 80486
5 Pentium

2.3.52 CreateBmpCursor()

CreateBmpCursor() Previous Top Next

Creates a cursor from a BMP handle.

Syntax:

CreateBmpCursor( <hBitmap>, <hPalette>,


<nHotRow>, <nHotCol>, <lInterval>,
<aBlack>, <aWhite>, <aTransparent>,
<aInverted> );
--> hCursor

Parameters:

<hBitmap>, <hPalette> The BMP handle.

<nHotRow>, <nHotCol> The coordinates of the hot


point of the cursor.

<lInterval> Set to .t. to interpret color arrays as color

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 111

intervals, otherwise color arrays are interpret as color


lists.

<aBlack>, <aWhite>, <aTransparent>, <aInverted>


The color arrays.

Returns:

<hCursor> The cursor handle.

2.3.53 CreateCare()

CreateCare() Previous Top Next

Create new system caret

Syntax:

CreateCaret(<hWnd> ,; <hBitmap>,;
<nWidth> ,; <nHeight> )

Parameters:

<hWnd> Handle of window

<hBitmap> Handle of bitmap to the new caret. nil to


solid caret and 1 to gray caret

<nWidth> Width of bitmap

<nHeight> Height of bitmap

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 112

Returns:

nil

2.3.54 CreateCDC()

CreateCDC() Previous Top Next

Create Compatible Device Context

Syntax:

CreateCDC(<hDC> ) \\ hDCC

Parameters:

<hDC> Device context to create another compatible


DC

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 113

<hDCC> Compatible Device Context

Sample:

This example paints a bitmap directly with the API

hDC := oWnd:GetDC()

hdcMem

hbmp, hbmpOld;

nWidth, nHeight

hbmp = LoadBitmap(GetResources(), "MyBitmap");

nWidth := pBmpWidth ( hBmp )

nHeight := pBmpHeight( hBmp )

hdcMemory = CreateCDC( hDC )

hbmpOld = SelectObject(hdcMem, hbmp )

BitBlt(hdc, 0, 0, nWidth, nHeight, hdcMem, 0, 0,


SRCCOPY)

SelectObject(hdcMem, hbmpOld )

DeleteDC(hdcMem)

oWnd:ReleaseDC()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 114

2.3.55 CreateDC()

CreateDC() Previous Top Next

Creates a device context for the given device

Syntax:

CreateDC( <cDriver>, <cDevice>,


<cOutPut>, <cInitData> ) --> <hDC>

Parameters:

<cDriver> MsDos filename of the device driver (i.e.:


"Epson" )

<cDevice> Name of the specific device to be


supported ( i.e. "Epson FX-80" )

<cOutPut> MsDos filename or device name of the


physical output medium (file or output port)

<cInitData> Additional information specific of that


device.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 115

Returns:

<hDC> The handle of the device context just created.

Observations

hDCs created with CreateDC() must be released with


DeleteDC(), and hDCs created with GetDC() must be
released with ReleaseDC().

See also:

DeleteDC()

2.3.56 CreateDlgIndirect()

CreateDlgIndirect() Previous Top Next

Creates a modeless DialogBox from memory resources

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 116

CreateDlgIndirect( <hInstance>,
<cMemTemplate>, <hWndOwner> ) \\
<hDlg>

This function creates a modeless dialog box from a


dialog box template in memory.

This function is used when a modeless dialog box is


created from source code.

Use FiveWin classes instead of managing these


functions directly. Classes give you much more power
and they are much easier to use.

Parameters:

<hInstance> Identifies an instance of the module that


will create the Dialog Box.

<cMemTemplate> A string that contains the binary


description of the Dialog Box template.

<hWndOwner> The handle of the window which is


the owner of the DialogBox. By default it is
GetActiveWindow().

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 117

<hDlg> The handle ( like hWnd ) of the Dialog Box.

2.3.57 CreateEnhMetaFile()

CreateEnhMetaFile() Previous Top Next

Creates a device context for an enhanced-format metafile.

Syntax:

CreateEnhMetaFile( <nReserved>,
<cFileName> ) --> hDC

Parameters:

<nReserved> Not used.

<cFilename> The filename for the enhanced metafile.


Zero for a memory based enhanced metafile.

Returns:

<hDC> The handle of the device context for the


enhanced metafile. Zero in case of failure.

2.3.58 CreateFont()

CreateFont() Previous Top Next

Creates a logical font with specific characteristics

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 118

CreateFont( <aFontDescription> ) -->


<hFont>

This function creates a logical font that has the


specified characteristics in the array
aFontDescription.

This function is used from the TFont Class. Use


Classes as they are much easier to use and more
powerful.

Parameters:

<aFontDescription> An array containing all the


necessary information for creating the font:

#define LF_HEIGHT 1
#define LF_WIDTH 2
#define LF_ESCAPEMENT 3
#define LF_ORIENTATION 4
#define LF_WEIGHT 5
#define LF_ITALIC 6
#define LF_UNDERLINE 7
#define LF_STRIKEOUT 8
#define LF_CHARSET 9
#define LF_OUTPRECISION 10
#define LF_CLIPPRECISION 11
#define LF_QUALITY 12
#define LF_PITCHANDFAMILY 13
#define LF_FACENAME 14

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 119

<hFont> The handle of the new created font. 0 if it as


not possible to create it.

See also:

ChooseFont()

2.3.59 CreateHatch()

CreateHatch() Previous Top Next

Creates a brush with the specified hatched pattern

Syntax:

CreateHatch( <nStyle>, <nRGBColor> )


--> <hBrush>

This function creates a brush that has the specified


hatched pattern and color. The brush can be
subsequently be selected as the current brush for any
device.

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 120

<nStyle> nStyle specifies the hatch style of the


brush. This parameter can be one of the following
values:

Value Meaning
HS_BDIAGONAL 45-degree upward hatch (left to right)
HS_CROSS Horizontal and vertical crosshatch
HS_DIAGCROSS 45-degree crosshatch
HS_FDIAGONAL 45-degree downward hatch (left to right)
HS_HORIZONTAL Horizontal hatch
HS_VERTICAL Vertical hatch

<nRGBColor> Specifies the foreground color of the


brush (the color of the hatches).

Returns:

<hBrush> The return value is the handle of the brush


if the function is successful. Otherwise, it is NULL.

Observations

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 121

When an application has finished using the brush


created by the CreateHatchBrush function, it should
select the brush out of the device context and then
delete it by using the DeleteObject function.

See also:

CreatePatternBrush()

2.3.60 CreateMenu()

CreateMenu() Previous Top Next

Create a empty menu

Syntax:

CreateMenu() \\ hMenu

Parameters:

None

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 122

Returns:

<hMenu> Handle of the new menu. Otherwise NULL

2.3.61 CreateMetaFile()

CreateMetaFile() Previous Top Next

Creates a device context for a Windows metafile.

Syntax:

CreateMetaFile(<cFileName> ) --> hDC

Parameters:

<cFilename> The filename for the Windows metafile.


Zero for a memory based enhanced metafile.

Returns:

<hDC> The handle of the device context for the


Windows metafile. Zero in case of failure.

2.3.62 CreateOLEObject()

CreateOLEObject() Previous Top Next

It creates an OLE object

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 123

CreateOLEObject(<cOleName> ) \\ oBject

Parameters:

<cOleName> Name from the object to create

Returns:

<oBject> Created object

2.3.63 CreatePattern()

CreatePattern() Previous Top Next

Creates a brush with the specified pattern bitmap

Syntax:

CreatePattern( <hBitmap> ) \\
<hBrush>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 124

This function creates a brush whose pattern is


specified by a bitmap. The brush can be subsequently
be selected for any device that support raster
operations.

Parameters:

<hBitmap> Identifies the bitmap.

Returns:

<hBrush> The handle of the brush. It returns 0 if it


was not possible to create it.

See also:

CreateHatchBrush()

2.3.64 CreatePen()

CreatePen() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 125

Creates a pen with the specified style, width & color

Syntax:

CreatePen( <nStyle>, <nWidth>,


<nRGBColor> ) --> <hPen>

This function creates a pen having the specified style,


width and color. The pen can be subsequently be
selected as the current pen for any device.

Parameters:

<nStyle> Specifies the pen style. This parameter can


be one of the following values:

PS_SOLID Creates a solid pen.


PS_DASH Creates a dashed pen. (Valid only when the pen width is 1.)
PS_DOT Creates a dotted pen. (Valid only when the pen width is 1.)
PS_DASHDOT Creates a pen with alternating dashes and dots. (Valid only when the pen width is 1.)

PS_DASHDOTDOT Creates a pen with alternating dashes and double dots. (Valid only when the pen
width is 1.)
PS_NULL Creates a null pen.
PS_INSIDEFRAME Creates a pen that draws a line inside the frame of closed shapes produced by
graphics device interface (GDI) output functions that specify a bounding rectangle (for example, the
Ellipse, Rectangle, RoundRect, Pie, and Chord functions). When this style is used with GDI output
functions that do not specify a bounding rectangle (for example, the LineTo function), the drawing area of
the pen is not limited by a frame.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 126

<nWidth> Specifies the width, in logical units, of the


pen. If this value is zero, the width in device units is
always one pixel, regardless of the mapping mode.

<nRGBColor> Specifies the color of the pen.

Returns:

<hPen> The handle of the brush or 0 if it was not


possible to create it.

See also:

See TPen Class and Pen xBase commands.

2.3.65 CreatePopUpMenu()

CreatePopUpMenu() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 127

Creates an empty pop-up menu

Syntax:

CreatePopUpMenu() \\ hMenu

Parameters:

None

Returns:

<hMenu> Handle of the new popup menu

2.3.66 CreateSolidBrush()

CreateSolidBrush() Previous Top Next

Creates a brush that has a specified solid color

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 128

CreateSolidBrush( <nRGBColor> ) -->


<hBrush>

This function creates a brush that has the specified


color in nRGBColor. The brush can be subsequently
be selected as the current brush for any device.

This functions are automatically called from FiveWin


TBrush class. Use the class as it is much more easy
to use.

Parameters:

<nRGBColor> Specifies a RGB color.

Returns:

<hBrush> The handle of the brush or 0 if it not was


possible to create it.

See also:

Class TBrush and Brushes xBase commands.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 129

2.3.67 CreateWindow()

CreateWindow() Previous Top Next

Creates an overlapped, pop-up or child window

Syntax:

CreateWindow( <cClassName>, <cTitle>,


<nStyle>,<nLeft>, <nTop>, <nWidth>,
<nHeight>, <hWndOwner>, <hMenu>,
<cExtraData> ) --> <hWnd>

This function creates a window. It is used from inside


FiveWin TWindow Class. Use Classes as they much
more powerful and easy to manage.

Parameters:

<cClassName> The name of the class of the window.


This class it is not related to an 5W oops class, but
to a windows api own identification.

<cTitle> The title or the caption of the window.

<nStyle> Specifies the style of the window being


created.

<nLeft> The coordinates and dimensions of the

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 130

window.

<nTop>

<nWidth>

<nHeight>

<hWndOwner> The handle of the window owner (if


any) of the new window.

<hMenu> The handle of its PullDown menu.

<cExtraData> Some extra data sometimes required.

Returns:

<hWnd> The handle of the just created window.

See also:

TWindow Class and Window creation xBase


commands

2.3.68 cResToStr()

cResToStr() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 131

It loads a resource in a string of characters

Syntax:

cResToStr(<cResName>, <cResType> ) --
> cInfo

Parameters:

<cResName> Name from the resource to load

<cResType> Resource type

Returns:

<cInfo> Resource recovered as text string

Observations

It is used to recover resources that were stored


previously like a string of text. Used in the IDE of

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 132

FiveWin.

2.3.69 cStrWord()

cStrWord() Previous Top Next

To extract a word of a string of characters

Syntax:

cStrWord(<cString> , <@nOffset> ,;
<cSeparator> ) --> cWord

Parameters:

<cString> String of charaters

<@nOffset> Displacement of the word gone by


reference

<cSeparator> Separador of words. For defect " "

2.3.70 cTempFile()

cTempFile() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 133

Retrieves a temporary new filename

Syntax:

cTempFile() --> <cNewFileName>

Parameters:

None.

Returns:

<cNewFileName> It is a new non-existing filename,


with the format: XXXXXX.

2.3.71 Ctl3dlook()

Ctl3dLook() Previous Top Next

Makes 3D any Control

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 134

Syntax:

Ctl3dLook(<hWnd> ) --> lSuccess

Parameters:

<hWnd> Handle del control

Returns:

<lSuccess> return .t. if the operation was sucesfully

2.3.72 Ctrldrawfocus()

Ctrldrawfocus() Previous Top Next

It draws the contour of a control in way design.

Syntax:

CtrlDrawFocus( <hWnd>, <nOriginRow>,


<nOriginCol>, <nMRow>, <nMCol>,
<nMResize> ) --> nil

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 135

<hWnd> Handle of the control

<nOriginRow> The origin row

<nOriginCol> The origin column

<nMRow> The mouse row

<nMCol> The mouse column

<nMResize> The mouse resize direction

Returns:

Nil

2.3.73 CurDrive()

CurDrive() Previous Top Next

Retrieves the default drive selected letter

Syntax

CurDrive() \\ <cCurDrive>

Parameters

None

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 136

Returns

<cCurDrive> The letter of the currently selected drive:


"C", "D", "E", ...

Example

MsgInfo( CurDrive() )

2.3.74 Cursor()

Cursor() Previous Top Next

It loads and it activates a cursor

Syntax:

Cursor(<cnCursor> ) --> lSuccess

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 137

<cnCursor> Name or idendificador of the cursor in


the file of resources.

Returns:

.t. if you could load and to activate.

2.3.75 CursorArrow()

CursorArrow() Previous Top Next

Select the Windows default arrow cursor

Syntax:

CursorArrow() --> nil

This function changes the mouse cursor to the


traditional arrow in window.

Parameters:

None.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 138

Returns:

Nothing.

See also:

CursorWait() CursorHand() CursorCatch() CursorWE()


CursorIbeam() CursorSize()

2.3.76 CursorCatch()

CursorCatch() Previous Top Next

Selects the FiveWin hand catching cursor

Syntax:

CursorCatch() --> nil

This function changes the mouse cursor into a hand


in a catching position.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 139

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor just


temporarily while we are doing other tasks. As soon
as the API takes the control it will restore the mouse
cursor to the one associated to the window which is
below the cursor.

See also:

CursorWait() CursorHand() CursorArrow() CursorWE()


CursorIbeam() CursorSize()

2.3.77 CursorDrag()

CursorDrag() Previous Top Next

Selects the FiveWin drag cursor.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 140

Syntax:

CursorDrag() --> nil

This function changes the mouse cursor into the drag


cursor.

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor just


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

CursorWait() CursorCatch() CursorArrow() CursorWE()


CursorIbeam() CursorSize()

2.3.78 CursorHand()

CursorHand() Previous Top Next

Selects the FiveWin hand cursor

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 141

CursorHand() --> nil

This function changes the mouse cursor into a hand


in a pointing position.

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor just


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 142

CursorWait() CursorCatch() CursorArrow() CursorWE()


CursorIbeam() CursorSize()

2.3.79 CursorIbeam()

CursorIbeam() Previous Top Next

Selects the Windows default IBeam cursor

Syntax:

CursorIbeam() --> nil

This function changes the mouse cursor into a hand


in an 'ibeam' shape. (the one that we see when the
mouse goes over a GET).

Parameters:

None.

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 143

Nothing.

Observations:

These functions let us change the mouse cursor


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

CursorWait() CursorCatch() CursorArrow() CursorWE()


CursorHand() CursorSize()

2.3.80 CursorNS()

CursorNS() Previous Top Next

To load and to activate the cursor of two arrows South North

Syntax:

CursorNS() --> nPrevCur

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 144

Parameters:

None

Returns:

<nPrevCur> Handle of the previous cursor

2.3.81 CursorSize()

CursorSize() Previous Top Next

Selects the Windows default Size cursor

Syntax:

CursorSize() --> nil

This function changes the mouse cursor into a hand


in a 'resize' shape. (the one that we see when the
mouse resizes a window).

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 145

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

CursorWait() CursorCatch() CursorArrow() CursorWE()


CursorHand() CursorIbeam()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 146

2.3.82 CursorStop()

CursorStop() Previous Top Next

Selects the FiveWin stop cursor.

Syntax:

CursorStop() --> nil

This function changes the mouse cursor into a stop


signal.

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor just


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

CursorWait() CursorCatch() CursorArrow() CursorWE()


CursorIbeam() CursorSize()

2.3.83 CursorWait()

CursorWait() Previous Top Next

Selects the Windows default wait cursor

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 147

Syntax:

CursorWait() --> nil

This function changes the mouse cursor into a waiting


sand-clock (the one that we see when windows is
processing).

Parameters:

None.

Returns:

Nothing.

Observations:

These functions let us change the mouse cursor


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 148

See also:

CursorSize() CursorCatch() CursorArrow() CursorWE CursorHand() CursorIbeam()

2.3.84 CursorWE()

CursorWE() Previous Top Next

Selects the Windows default WE cursor

Syntax:

CursorWE() --> nil

This function changes the mouse cursor into a


horizontal arrow (the one that we see when windows
is resizing horizontally).

Parameters:

None.

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 149

Nothing.

Observations:

These functions let us change the mouse cursor


temporarily while we are doing other tasks. As soon
as the API takes control it will restore the mouse
cursor to the one associated with the window which is
below the cursor.

See also:

CursorSize() CursorCatch() CursorArrow() CursorWait


() CursorHand() CursorIbeam()

2.3.85 cValToChar()

cValToChar() Previous Top Next

Converts any value into a string

Syntax:

cValToChar( <uValue> ) --> <cValue>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 150

This function converts a value of any type into its


equivalent character expression.

This function is coded in C language and it is


extremely fast.

Parameters:

<uValue> It may be any value except an array or an


Object.

Returns:

<cValue> A string with the character expression of


<uValue>

Sample:

? cValToChar( 123 ) --> "123"

2.3.86 cWinVersion()

cWinVersion() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 151

Returns current windows version as string.

On 32 bits this function is more accurate than 16 bits.

Syntax:

cWinVersion() --> <cValue>

Returns:

<cValue> A string with the current Windows version

Sample:

? cWinVersion() --> "XP"

2.4 D

2.4.1 D2bin()

D2bin() Previous Top Next

Converts a floating point number into a string

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 152

D2bin(<nFloat> ) --> cValue

Parameters:

<nFloat> Floating point num

Returns:

<cValue> Value returned in string format

Sample:

Source Code:

SOURCE\FUNCTION\B2BIN.C

2.4.2 DbClearInd()

DbClearInd() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 153

It closes all the indexes of the area of current work

Syntax:

DbClearInd() --> nil

Function to obtain compatibility with xBase++

Parameters:

None

Returns:

DbClearIndex()

Source Code:

SOURCE\FUNCTION\DB10.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 154

2.4.3 DbClearRel()

DbClearRel() Previous Top Next

It erases the active relationships

Syntax:

DbClearRel() --> nil

Function to obtain compatibility with xBase++

Parameters:

None

Returns:

DbClearRelation()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 155

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.4 DbCloseAre()

DbCloseAre() Previous Top Next

Closes a work area

Syntax:

DbCloseAre() --> nil

Function to obtain compatibility with xBase++

Parameters:

None

Returns:

DbCloseArea()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 156

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.5 DbCommital()

DbCommital() Previous Top Next

Writes in the disk the update all the work areas

Syntax:

DbCommitAl() --> nil

Function to obtain compatibility with xBase++

Parameters:

None

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 157

Returns:

DbCommitAll()

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.6 DbCopyStru()

DbCopyStru() Previous Top Next

Copy the current .dbf structure to a new database (.dbf) file

Syntax:

DbCopyStru(<x>, <y> ) --> nil

Function to obtain compatibility with xBase++

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 158

<x> Group of fields to copy

<y> Name from the file to generate

Returns:

DbCopySruct()

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.7 DbCreteIn()

DbCreteIn() Previous Top Next

Create a index file

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 159

DbCreateIn(<x>, <y>, <z>, <w> )


--> nil

Function to obtain compatibility with xBase++

Parameters:

<x> Index name

<y> Key expression

<z> CodeBlock with the key expression of the index

<w> Logic value to create uniques index.

Returns:

DbCreateIndex( x, y, z, w )

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 160

SOURCE\FUNCTION\DB10.PRG

2.4.8 DbfCdx()

DbfCdx() Previous Top Next

Just to avoid removing extern DBFCDX

Syntax:

DbfCdx() --> nil

Parameters:

None

Returns:

Nil

Observations:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 161

This function will be used for not having to declare


Extern DBFCDX

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.9 DbfCdxAx()

DbfCdxAx() Previous Top Next

Just to avoid removing extern DBFCDXAX

Syntax:

DbfCdxAx() --> nil

Parameters:

None

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 162

Returns:

nil

Observations:

This function will be used for not having to declare


Extern DBFCDAX

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.10 DbfNtx()

DbfNtx() Previous Top Next

Just to avoid removing extern DBFNTX

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 163

DbfNtx() --> nil

Parameters:

None

Returns:

Nil

Observations:

This function will be used for not having to declare


Extern DBFNTX

Source Code:

SOURCE\FUNCTION\DB10.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 164

2.4.11 DbPack()

DbPack() Previous Top Next

It eliminates the registrations erased logically physically

Syntax:

DbPack() --> nil

Parameters:

None

Returns:

nil

Source Code:

SOURCE\FUNCTION\DBTOOLS.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 165

2.4.12 DbPx()

DbPx() Previous Top Next

Just to avoid removing extern DBPX

Syntax:

DbPx() --> nil

Parameters:

None

Returns:

nil

Observations:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 166

This function should be put if one doesn't want to


include the it sentences extern DBPX

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.13 DbRLockLis()

DbrLockLis() Previous Top Next

Return an array of the current lock list

Syntax:

DbRLockList() \\ aRecordLocks

Function to obtain compatibility with xBase++

Parameters:

None

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 167

Returns:

<aRecordLocks> Array with the numbers of


registrations locked in the active area

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.14 DbSelectAr()

DbSelectAr() Previous Top Next

It changes the area of current work

Syntax:

DbSelectArea(<x> ) --> nil

Function to obtain compatibility with xBase++

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 168

Parameters:

<x> Numeric value or of characters that it represents


the number of area or the alias of an area.

Returns:

DbSelectArea( x )

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.15 DbSetDefa()

DbSetDefa() Previous Top Next

Set the CA-Clipper default drive and directory

Syntax:

DbSetDefa(<x> ) --> nil

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 169

Function to obtain compatibility with xBase++

Parameters:

<x> Drive and directory where they were created and


those were looked for files for defect.

Returns:

DbeSetDefault( x )

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.16 DbSetDrive()

DbSetDrive() Previous Top Next

The controller returns for defect or one selects new

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 170

Syntax:

DbSetDrive(<x> ) --> cControladorActual

Function to obtain compatibility with xBase++

Parameters:

<x> Name of the controller that will be used

Returns:

DbSetDriver( x )

Sample:

SAMPLES\TESTDRV.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 171

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.17 DbSetFilte()

DbSetFilte() Previous Top Next

It establishes a filter condition

Syntax:

DbSetFilte(<x>, <y> ) --> nil

Function to obtain compatibility with xBase++

Parameters:

<x> Code block that expresses the filter condition.

<y> Filter condition in text form.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 172

Returns:

DbSetFilter( x, y )

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.18 DbSetRelat()

DbSetRelat() Previous Top Next

It relates two work areas

Syntax:

DbSetRelat(<x>, <y>, <z> ) --> nil

Function to obtain compatibility with xBase++

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 173

<x> Numeric value or of characters that it expresses


the number of area or the alias of the area daughter.

<y> Code Block with the key of the relation.

<z> Expression of the relation in text form.

Returns:

DbSetRelation( x, y, z )

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.19 DbUnlockAl()

DbUnlockAl() Previous Top Next

Release file/record locks in all the work areas

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 174

DbUnlockAl() --> nil

Function to obtain compatibility with xBase++

Parameters:

None

Returns:

DbUnLockAll()

Source Code:

SOURCE\FUNCTION\DB10.PRG

2.4.20 DbZap()

DbZap() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 175

Remove all records from the current database file

Syntax:

DbZap() --> nil

Parameters:

None

Returns:

nil

Source Code:

SOURCE\FUNCTION\DBTOOLS.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 176

2.4.21 DDEAccessData()

DDEAccessData() Previous Top Next

Accesses a DDE global memory object

Syntax:

DDEAccessData(<pData>, <@nLen> ) \\
pBuffer

Parameters:

<pData> Data to consent

<@nLen> Longitude of the data to access

Returns:

<pBuffer> Value of the accessed data

Sample:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 177

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.22 DDEAck()

DDEAck() Previous Top Next

DDE Acknowledge FiveWin management function

Syntax:

DDEAck( <hWndServer>, <nExtraData> )


--> nil

This is a FiveWin internal function for DDE support.

Use FiveWin DDE classes and xBase commands as


they are much easier to use and more powerful.

Parameters:

<hWndServer> The handle of the window which it is


acting as a server in a DDE conversation.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 178

<nExtraData> Some extra data sometimes required.

Returns:

Nothing.

Sample:

SAMPLES\\TestDDE.prg DDEClien.prg DDEServe.prg

Source Code:

SOURCE\\CLASSES\\TDDE.prg

See also:

DDECommand() DDEGetCommand() DDETerminate()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 179

2.4.23 DDEclientt()

DDEClientt() Previous Top Next

Begins a DDE data transaction

Syntax:

DDEclientt( <hData>,; <nLen>,;


<hConv>,; <hszItem>,;<nClipFmt>,;
<nType>,;<nTimeOut>,; <@nResult>)\\
hDDEData

Parameters:

<hData> Data to pass to server

<nLen> Length of data

<hConv> Handle of conversation

<hszItem> Handle of item-name string

<nClipFmt> Clipboard data format

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 180

<nType> Transaction type

<nTimeOut> Timeout duration

<@nResult> Transaction result

Returns:

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.24 DDEcmpstri()

DDEcmpstri() Previous Top Next

Compares the values of two string handles

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 181

DDEcmpstri(<hSZ1>, <hSZ2> ) -->


nResult

Parameters:

<hSZ1> Handle of first string

<hSZ2> Handle of second string

Returns:

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.25 DDECommand()

DDECommand() Previous Top Next

DDE command FiveWin management function

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 182

DDECommand( <cDDECommand> ) -->


<pGlobalMemory>

This is a FiveWin internal function for DDE support.


Use FiveWin DDE classes and xBase commands as
they are much easier to use and more powerful.

Parameters:

<cDDECommand> A character expression that


holds the DDE order we want to process.

Returns:

<pGlobalMemory> A numeric value which holds the


pointer of a global memory to be supplied to DDE
services.

Sample:

SAMPLES\\TestDDE.prg DDEClien.prg DDEServe.prg

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 183

Source Code:

SOURCE\\WINAPI\\DDE.c

See also:

DDECommand() DDEGetCommand() DDETerminate()

2.4.26 DDEconnect()

DDEConnect() Previous Top Next

Establishes a conversation with a server application

Syntax:

DDEconnect(<hInst>,; <hService>,;
<hTopic>,; <pCC> ) \\ hConv

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 184

<hInst> The service on which to establish the


connection.

<hService>

<hTopic> The topic on which to establish the


connection.

<pCC> Address of structure with context data

Returns:

<hConv> Handle of the established conversation.


Otherwise NULL

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.27 DDECreateDataHandle()

DDECreateDataHandle() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 185

Creates a handle that identifies the specified data.

Syntax:

DDECreateDataHandle( <hInst>,
<cBuffer>, <nLen>, <nOffset>, <nItem>,
<nClipFmt>, <nFlags> ) --> hData

Parameters:

<hInst> Instance identifier.

<cBuffer> The buffer of data to be copied to the DDE


object.

<nLen> The amount of bytes to copy from the buffer.

<nOffset> The offset, in bytes, from the beginning of


the buffer.

<nItem> The handle of a string previously created by


a call to DDECreateStringHandle().

<nClipFmt> Clipboard data format.

<nFlags> Specifies the creation flags.

Returns:

<hData> The data handle. Zero in case of failure.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.28 DDECreateStringHandle()

DDECreateStringHandle() Previous Top Next

Creates a handle that identifies the specified string.

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 186

DDECreateStringHandle( <hInst>,
<cText>, <nCodePage> );
--> hText

Parameters:

<hInst> Instance identifier.

<cText> The service-name string.

<nCodePage> The codepage identifier for the string.

Returns:

<hText> The handle of the service-name string.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.29 DDEdisconn()

DDEdisconn() Previous Top Next

Terminates a DDE conversation

Syntax:

DDEDisconnect(<hConv> ) --> lSuccess

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 187

<hConv> Handle of the conversation

Returns:

<lSuccess> .t. if the operation is successful.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.30 DDEfreedataHandle()

DDEfreedaHandle() Previous Top Next

DDEfreedataHandle() Frees a global memory object and deletes the data handle associated with the
object

Syntax:

DDEFreedataHandle(<hData> ) -->
lSuccess

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 188

Parameters:

Returns:

<lSuccess> .t. if the operation is successful.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.31 DDEfreestr()

DDEfreestr() Previous Top Next

Frees a string handle in the calling application.

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 189

DDEFreeStringHandle(<hInst>,; <hText> )
--> lSuccess

Parameters:

<hInst> Instance identifier

<hText> Handle of string

Returns:

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.32 DDEGetCommand()

DDEGetCommand() Previous Top Next

DDE GetCommand FiveWin management function

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 190

Syntax:

DDEGetCommand( <pGlobalMemory> ) -->


<cDDECommand>

This is a FiveWin internal function for DDE support.


Use FiveWin DDE classes and xBase commands as
they are much easier to use and more powerful.

Parameters:

<pGlobalMemory> A numeric value which holds the


pointer of a global memory to be supplied to DDE
services.

Returns:

<cDDECommand> A character expression that


holds the DDE order we want to process.

Sample:

SAMPLES\\TestDDE.prg DDEClien.prg DDEServe.prg

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 191

Source Code:

SOURCE\\WINAPI\\DDExc.c

See also:

DDECommand() DDEGetCommand() DDETerminate()

2.4.33 DDEGetData()

DDEGetData() Previous Top Next

Copies data from the given global memory object to the specified local buffer.

Syntax:

DDEGetData(<hData>, <nOffset> ) -->


cData

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 192

<hData> Handle of global memory object

<nOffset> Offset to beginning of data

Returns:

<cData> Value of the buffer

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.34 DDEGetLastError()

DDEGetLastError() Previous Top Next

Retrieves the most recent DDE error code.

Syntax:

DDEGetLastError(<hInst> ) --> nError

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 193

<hInst> Instance identifier

Returns:

<nError> The most recent error code.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.35 DDEinitial()

DDEinitial() Previous Top Next

Registers an application with the DDE Management Library

Syntax:

DDEinitialize(<@hInst> ,; <pDDEProc>,;
<nType> ) --> nResult

Parameters:

<@hInst> Address of instance identifier

<pDDEProc> Address of callback function

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 194

<nType> Flags

Returns:

<nResult> One in the next cases:

DMLERR_DLL_USAGE

DMLERR_INVALIDPARAMETER

DMLERR_NO_ERROR

DMLERR_SYS_ERROR

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.36 DDEnameser()

DDEnameser() Previous Top Next

Registers or unregisters the service names that a dynamic data exchange (DDE) server supports.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 195

Syntax:

DDENameService(<hInst>,; <hText>,;
<nReserved>,; <nFlags> ) \\ hDDEData

Parameters:

<hInst> Instance identifier

<hText> Handle of service-name string

<nReserved> Reserved

<nFlags> Service-name flags

Returns:

<hDDEData> != 0 if the function is succesfull.


Otherwise 0.

Sample:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 196

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.37 DDEqueryst()

DDEqueryst() Previous Top Next

Copies text associated with a string handle into a buffer

Syntax:

DDEQuerySting(<hInst>, <hSZ> ) -->


cString

Parameters:

<hInst> Instance identifier

<hSZ> Handle of string

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 197

<cString> String required.

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.38 DDEServer()

DDEServer Previous Top Next

Handle of events of the class TDDEMLServer

Syntax:

DDEServer(<nType>, <nFmt>, <hConv>,


<hSz1>, <hSz2>, <hData>,; <hData1>,
<hData2> )

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 198

<nType> Type of requested service

<nFmt> Not used

<hConv> Handler of the conversation DDEML

<hSz1> Some processes require to hold a hSZ1


handle stored here

<hSz2> Some processes require to hold a hSZ2


handle stored here

<hData> Handler to obtain data by means of the


function DDEGetData( hData )

<hData1> Not used.

<hData2> If this value is received to 1 and the


requested nType it is XTYP_DISCONNECT, the server
will be disconnected.

Returns:

It returns different values depending on the service


negotiated. (to see code source)

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 199

Sample:

\SAMPLES\DDEMLSERV.PRG

Source Code:

\SOURCE\CLASSES\TDDEMLSV.PRG

2.4.39 DDETerminate()

DDETerminate() Previous Top Next

DDE Terminate FiveWin management function

Syntax:

DDETerminate( <hWndServer> ) --> nil

Called when a DDE conversation has finished. This is


a FiveWin internal function for DDE support. Use
FiveWin DDE classes and xBase commands as they
are much easier to use and more powerful.

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 200

<hWndServer> The handle of the window which it is


acting as a server in a DDE conversation.

Returns:

nothing

Observations:

Sample:

SAMPLES\\TestDDE.prg DDEClien.prg DDEServe.prg

Source Code:

SOURCE\\CLASSES\\TDDE.prg

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 201

DDECommand() DDEGetCommand() DDETerminate()

2.4.40 DDEuniniti()

DDEuniniti() Previous Top Next

Frees all DDEML resources associated with the application.

Syntax:

DDEUninitialize(<hInst> ) --> lResult

Parameters:

<hInst> Instance identifier

Returns:

<lResult> .t. if the function is successful.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 202

Sample:

Source Code:

SOURCE\WINAPI\DDEML.C

2.4.41 DecToHex()

DecToHex() Previous Top Next

Converts a number in its hexadecimal form.

Syntax:

DecToHex( <nValue> ) --> cHex

Parameters:

< nValue > The number to convert

Returns:

<cHex> The resulted hexadecimal string.

Sample:

local cVar := DecToHex( 1234 )

Source Code:

SOURCE\FUNCTION\RANDOM.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 203

2.4.42 Decrypt()

Decrypt() Previous Top Next

Decrypts a string with an optional key

Syntax:

Decrypt( <cEncryptedText> [, <cKey> ] )


--> <cDecryptedText>

Parameters:

<cEncryptedText> It is the text to decrypt.

<cKey> It is an optional text key to use it to generate


a personalized decrypted text.

Returns:

<cDecryptedText> The resulted decrypted text.

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 204

Not provided.

See also:

Encrypt()

2.4.43 Defwindowp()

Defwindowp() Previous Top Next

Calls the default window procedure.

Syntax:

DefWindowProc(<hWnd>,; <nMsg> ,;
<nParam,;<nlParam>) --> <nResult>

Parameters:

<hWnd> Handle of the window that receives the


message

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 205

<nMsg> Received message

<nParam> First parameter like INTEGER

<nlParam> Second parameter like LONG

Returns:

<nResult> Variable in function of the refund of the


processing of the message.

Sample:

Source Code:

SOURCE\WINAPI\WINDOWS.C

2.4.44 DelDbfMdx()

DelDbfMdx() Previous Top Next

Resets the MDX file existence at a DBFMDX Dbf file

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 206

Syntax:

DelDbfMdx( <cDbfFileName> ) -->


<lSuccess>

Parameters:

<cDbfFileName> The name of the DBF file to reset


its MDX flag.

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Observations:

This function has been created to be able to reindex


from scratch a MDX file (as a MDX index would never
be reindexed as it gets corrupted!).

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 207

The steps to follow are:

1. Close the DBF file.

2. Erase the MDX file.

3. Call DelDbfMdx( <cDbfFileName> )

4. Open the DBF file in anormal way.

5. Index it.

Source Code:

SOURCE\\FUNCTION\\NtxTools.c

See also:

cNtxPos() cNtxKey()

2.4.45 DeleteDC()

DeleteDC() Previous Top Next

Deletes the given device context

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 208

Syntax:

DeleteDC( <hDC> ) --> <lSuccess>

This function destroys the given device context.

Parameters:

<hDC> The handle of the device context

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Observations:

This function must only be used to destroy device


contexts created with CreateDC() and never with
GetDC().

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 209

Source Code:

SOURCE\\WINAPI\\dc.c

See also:

CreateDC() GetDC() ReleaseDC()

2.4.46 DeleteEnhMetaFile()

DeleteEnhMetaFile() Previous Top Next

Deletes an enhanced-format metafile handle.

Syntax:

DeleteEnhMetaFile( <hEMF> ) -->


lSuccess

Parameters:

<hEMF> The handle of an enhanced metafile.

Returns:

<lSuccess> .t. if the function is successful, otherwise


.f..

Sample :

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 210

Source code:

SOURCE\WINAPI\EMETAFIL.C

2.4.47 DeleteMeta()

DeleteMeta() Previous Top Next

It invalidates the given metafile handle

Syntax:

DeleteMetafile(<hMeta> ) --> lSuccess

Parameters:

<hMeta> Handle of metafile to delete.

Returns:

<lSuccess> .t. if the operation is successful

Sample:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 211

Source Code:

SOURCE\WINAPI\METAFILE.C

2.4.48 DeleteObject()

DeleteObject() Previous Top Next

Deletes an object from memory freeing all resources

Syntax:

DeleteObject( <hGDIObject> ) -->


<lSuccess>

This function deletes a GDI object from memory,


freeing all system storage associated (objects include
pens, brushes, fonts, bitmaps, regions, and palettes).

Parameters:

<hGDIObject> The handle of the GDI object, obtained


with its corresponding creating function.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 212

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Observations:

FiveWin internally implements a resources control


system in order to avoid and control the problems
related with system resources losing.

Source Code:

SOURCE\\WINAPI\\delobjec.c

See also:

SelectObject()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 213

2.4.49 DelIniEntr()

DelIniEntr() Previous Top Next

It erases an entrance in a file INI

Syntax:

DelIniEntry(<Section>,; <Entry> ,;
<File> ) --> lSuccess

Parameters:

<Section> Section

<Entry> Entry

<File> Ini File

Returns:

Sample:

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 214

SOURCE\WINAPI\PROFILE.C

2.4.50 Delinisect()

Delinisect() Previous Top Next

It erases a section in a file INI

Syntax:

DelIniSection(<cSection>, <cFile> )
--> lSuccess

Parameters:

<cSection> Section

<cFile> Ini file.

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 215

<lSuccess> .t. if the operation is successful

Sample:

Source Code:

SOURCE\WINAPI\PROFILE.C

2.4.51 Delresource()

Delresource() Previous Top Next

To erase a resource

Syntax:

DelResource(<hResource> ) --> lSuccess

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 216

Parameters:

<hResource> Handle of the resource.

Returns:

<lSuccess> .t. if the operation is sucessful

Sample:

Source Code:

SOURCE\WINAPI\DELOBJEC.C

2.4.52 DelwndBrus()

DelwndBrus() Previous Top Next

To erase the last brush created with WndBrush

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 217

DelWndBrus()

Parameters:

None

Returns:

Nil

Sample:

Source Code:

SOURCE\WINAPI\WNDBRUSH.C

2.4.53 DestroyCaret()

DestroyCaret() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 218

Destroy the system caret.

Syntax:

DestroyCaret() --> nil

Parameters:

Returns:

nil

Sample:

Source Code:

SOURCE\WINAPI\CARET.C

2.4.54 DestroyCursor()

DestroyCursor() Previous Top Next

Destroys a cursor created with Create... or Load...

Syntax:

DestroyCursor( <hCursor> ) -->


<lSuccess>

This function destroys a cursor that was previously


created by the CreateCursor() or LoadCursor()
function and frees any memory that the cursor
occupied.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 219

Parameters:

<hCursor> Identifies the cursor to be destroyed. The


cursor must not be in current use.

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Source Code:

SOURCE\\WINAPI\\Cursors.c

See also:

CreateCursor() LoadCursor()

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 220

2.4.55 Destroyico()

Destroyico() Previous Top Next

It destroys an icon

Syntax:

DestroyIcon(<hIcon> ) --> lSuccess

Parameters:

<hIcon> Handle of the icon to destroy

Returns:

<lSuccess> .t. if the operation is successful.

Sample:

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 221

SOURCE\WINAPI\ICONS.C

2.4.56 DestroyMenu()

DestroyMenu() Previous Top Next

Destroys a menu and frees any memory that the menu occupied.

Syntax:

DestroyMenu(<hMenu> ) --> lSuccess

Parameters:

<hMenu> Handle of menu to destroy

Returns:

<lSuccess> Retrieves .t. if the function is successful

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 222

Source Code:

SOURCE\FUNCTION\MENUS.C

2.4.57 DestroyWindow()

DestroyWindow() Previous Top Next

Destroys the specified window

Syntax:

DestroyWindow( <hWnd> ) --> <lSuccess>

The DestroyWindow function destroys the specified


window. The function sends appropriate messages to
the window to deactivate it and remove the input
focus. It also destroys the window's menu, flushes the
application queue, destroys outstanding timers,
removes clipboard ownership, and breaks the
clipboard-viewer chain (if the window is at the top of
the viewer chain).

It sends WM_DESTROY and WM_NCDESTROY


messages to the window. If the given window is the
parent of any windows, DestroyWindow automatically
destroys these child windows when it destroys the
parent window. The function destroys child windows
first, and then the window itself.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 223

The DestroyWindow function also destroys


modelessdialog boxes created by the CreateDialog
function.

FiveWin manages all these functions through


Classes.Use FiveWin Classes as they are much
easier to use and more powerful.

Parameters:

<hWnd> The handle of the window to be destroyed.

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Source Code:

SOURCE\\WINAPI\\WndDestr.c

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 224

CreateWindow()

2.4.58 DeviceCapa()

DeviceCapa() Previous Top Next

DeviceCapabilities() Retrieves the capabilities of the printer device driver.

Syntax:

DeviceCapabilities(<cDevice>,,
<nCapability>,; <@cBuffer> ) -->
<nRetCode>

Parameters:

<cDevice> Device-name

DC_BINNAMES Copies an array containing a list of the names of the paper bins.
DC_BINS Retrieves a list of available bins.
DC_COPIES returns the number of copies the device can print.
DC_DRIVER returns the version number of the printer driver.
DC_DUPLEX returns the level of duplex support.
DC_ENUMRESOLUTIONS returns a list of available resolutions.
DC_EXTRA returns the number of bytes required for thedevice-specific portion of the DEVMODE
structure for the printer driver.
DC_FIELDS returns the dmFields member of the printer driver'sDEVMODE structure.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 225

DC_FILEDEPENDENCIES returns a list of files that also need to be loaded when a driver is installed.

DC_MAXEXTENT returns a POINT structure containing the maximum paper size that the
dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify.
DC_MINEXTENT returns a POINT structure containing the minimum paper size that the
dmPaperLength and dmPaperWidth members of the printer driver's DEVMODE structure can specify.
DC_ORIENTATION returns the relationship between portrait and landscape orientations for a device,
in terms of the number of degrees that portrait orientation is rotated counterclockwise to produce
landscape orientation.
DC_PAPERNAMES Retrieves a list of supported paper names--for example, Letter or Legal.
DC_PAPERS Retrieves a list of supported paper sizes.
DC_PAPERSIZE Copies the dimensions of all supported paper sizes, in tenths of a millimeter, to an
array of POINT structures pointed to by the lpszOutput parameter.
DC_SIZE returns the dmSize member of the printer driver's DEVMODE structure.
DC_TRUETYPE Retrieves the abilities of the driver to use TrueType fonts.
DC_VERSION returns the specification version to which the printer driver conforms. DC_FIELDS
1 DC_PAPERS 2 DC_PAPERSIZE 3 DC_MINEXTENT 4 DC_MAXEXTENT 5 DC_BINS
6 DC_DUPLEX 7 DC_SIZE 8 DC_EXTRA 9 DC_VERSION 10 DC_DRIVER 11
DC_BINNAMES 12 DC_ENUMRESOLUTIONS 13 DC_FILEDEPENDENCIES 14
DC_TRUETYPE 15 DC_PAPERNAMES 16 DC_ORIENTATION 17 DC_COPIES 18

<nCapability> Device capability to query

<@cBuffer> Buffer to obtain the result

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 226

<nRetCode> The return value is -1 if the function fails.

Sample:

SAMPLES\DEVCAPS.PRG

// Testing DeviceCapabilities()

#include "FiveWin.ch"

#define DC_DUPLEX 7

#define DC_PAPERNAMES 16

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 227

//---------------------------------------------//

function Main()

local cInfo

if DeviceCapabilities( "Epson Stylus Color",;

DC_DUPLEX ) == 0

MsgInfo( "No DC_DUPLEX supported by this driver" )

endif

if DeviceCapabilities( "Epson Stylus Color",;

DC_PAPERNAMES, @cInfo ) != 0

MsgInfo( cInfo )

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 228

endif

return nil

//---------------------------------------------//

Source Code:

SOURCE\WINAPI\DEVICE.C

2.4.59 DevMode()

DevMode() Previous Top Next

Retrieves information about a printer driver's

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 229

Syntax:

DevMode(<cDeviceName>,<nSpecVersion> )
\\ aDevMode

Parameters:

<cDeviceName> Specifies the name of the device the


driver supports

<nSpecVersion> Specifies the version number of the


DEVMODE structure

Returns:

<aDevMode>

DeviceName[CCHDEVICENAM

SpecVersion

DriverVersion

Size

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 230

DriverExtra

Fields

Orientation

PaperSize

PaperLength

PaperWidth

Scale

Copies

DefaultSource

PrintQuality

Color

Duplex

YResolution

TTOption

Collate

FormName[CCHFORMNAME]

LogPixels

BitsPerPel

PelsWidth

PelsHeight

DisplayFlags

DisplayFrequency

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 231

SOURCE\WINAPI\PRINTDC.C

2.4.60 DialogBoxIndirect()

DialogBoxIndirect() Previous Top Next

Creates a modal dialog box from memory resources

Syntax:

DialogBoxIndirect( <hInstance>,
<cMemTemplate>,<hWndOwner> )-->
<nResult>

This function creates and executes a Modal


DialogBox from a Dialog Box template resource.

Parameters:

<hInstance> Identifies an instance of the module


whose executable file contains the dialog box
template. FiveWin supplies a GetResources() function
that returns the Instance of the EXE or the handle of
the resources DLL in use.

<cMemTemplate> A string that contains the binary


description of the Dialog Box template.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 232

<hWndOwner> The handle of the window which is


the owner of the DialogBox. By default it is
GetActiveWindow().

Returns:

<nResult> The parameter supplied to the function


EndDialog() used to terminate the execution of the
Dialog Box.

Observations:

Use FiveWin Classes and xBase commands. They


are much more powerful and easy to manage.

Source Code:

Not provided. See SOURCE\\WINAPI\\Dlogbox.c

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 233

EndDialog() CreateDlg() CreateDlgI() DialogBox()

2.4.61 DibDraw()

DibDraw() Previous Top Next

FiveWin DIB drawing function.

Syntax:

DibDraw( <hDC>, <hMemBitmap>,


<hPalette>, <nRow>, <nCol>, <nWidth>,
<nHeight>, <nRasterOp> ) --> lSuccess

This function draws a DIB (device independent bitmap)


on the device context specified by hDC

Parameters:

<hDC> The handle of the device context to use.

<hMemBitmap> The handle of the DIB.

<hPalette> The handle of the palette associated to


the DIB.

<nRow>, <nCol> The coordinates in pixels where


start drawing.

<nWidth>, <nHeight> The dimensions for drawing


the DIB.

<nRasterOp> Specifies the raster operation to be


performed (see BitBlt()).

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Observations:

When we started building FiveWin we first started


working with bitmaps. Later we discovered that the
general recommendation was to work with DIBs. So
we developed all the necessary functions to work with

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 234

DIBs. As our own experience increased, we believe


that there is a better way (a mixture of both) that was
much faster and easier.

We did a lot of different tests, and our systemwas by


far the fastest. It was a reason based on speed and
ease of use, because we wanted FiveWin to be
extremely fast! <g>

This later system is the one we currently use in


FiveWin, though we do give support for both Bitmaps
and DIBs.

You don't have to worry at all, just use FiveWin


TBitmap Class and place yourself at the xBase &
OOP level to get the maximum productivity.

Concentrate on your application, don't lose yourself in


details!

Source Code:

SOURCE\WINAPI\Dib.c

See also:

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.62 DibFromBitmap()

DibFromBitmap() Previous Top Next

Creates a DIB from a bitmap

Syntax:

DibFromBitmap( <hBitmap>, <hPalette> )


--> <hDIB>

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 235

This function creates a DIB from a Bitmap and its


associated palette.

Parameters:

<hBitmap> The handle of the bitmap to convert into a


DIB.

<hPalette> The handle of the palette associated to


the bitmap.

Returns:

<hDIB> The handle of the new DIB. (DIB = Device


independent bitmap).

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 236

Not provided. See SOURCE\\WINAPI\\Dib.c

See also:

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.63 DibHeight()

DibHeight() Previous Top Next

Returns the height of a DIB

Syntax:

DibHeight( <hDib> ) --> <nHeight>

This function returns the height in pixels of a DIB.

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 237

<hDIB> The handle of the new DIB. (DIB = Device


independent bitmap).

Returns:

<nHeight> The height of the DIB expressed in pixels.

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

Source Code:

SOURCE\\WINAPI\\Dib.c

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 238

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.64 DibPalette()

DibPalette() Previous Top Next

Returns the palette handle of a DIB

Syntax:

DibPalette( <hDIB> ) --> <hPalette>

This function retrieves the handle of the palette


associated to the DIB.

Parameters:

<hDIB> The handle of the new DIB. (DIB = Device


independent bitmap).

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 239

<hPalette> The handle of the palette associated with


the bitmap.

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

Source Code:

SOURCE\\WINAPI\\Dib.c

See also:

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.65 DibRead()

DibRead() Previous Top Next

Reads a DIB from disk

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 240

Syntax:

DibRead( <cBitmapFile> ) --> <hDIB>

This function generates a DIB in memory reading it


from a file .BMP in disk.

Parameters:

<cBitmapFile> The filename of the BMP file in disk.

Returns:

<hDIB> The handle of the new DIB. (DIB = Device


independent bitmap).

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 241

Source Code:

SOURCE\\WINAPI\\Dib.c

See also:

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.66 DibWidth()

DibWidth() Previous Top Next

Returns the width of a DIB

Syntax:

DibWidth( <hDib> ) --> <nWidth>

This function returns the width in pixels of a DIB.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 242

Parameters:

<hDIB> The handle of the new DIB. (DIB = Device


independent bitmap).

Returns:

<nWidth> The width of the DIB expressed in pixels.

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

Source Code:

SOURCE\\WINAPI\\Dib.c

See also:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 243

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.67 DibWrite()

DibWrite() Previous Top Next

Saves a DIB to disk

Syntax:

DibWrite( <cBMPFileName>, <hDIB> ) -->


<lSuccess>

This function generates a BMP file in disk from a DIB


in memory.

Parameters:

<cBMPFileName> The name of the BMP file to


generate in disk.

<hDIB> The handle of the DIB in memory.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 244

Observations:

We strongly recommend you to use TBitmap Class


for managing bitmaps. FiveWin process all that you
need automatically.

Returns:

<lSuccess> A logical value indicating if the operation


was successful.

Source Code:

SOURCE\\WINAPI\\Dib.c

See also:

DibRead() DibPalette() DibWidth() DibHeight()


DibWrite()

2.4.68 DiskChange()

DiskChange() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 245

Change the current drive.

Syntax:

DiskChange( <cDrive> ) --> lSuccess

Parameters:

<cDrive> The new current drive.

Returns:

<lSuccess> .t. if the drive is successfully changed,


otherwise .f..

Sample :

local lSuccess := DiskChange( "E:" )

Source code:

SOURCE\FUNCTION\DISK.C

2.4.69 DispFontPerSize()

DispFontPerSize() Previous Top Next

Returns the ratio between the standard font used and the normal font.

Syntax:

DispFontPerSize() --> nRatio

Parameters:

Returns:

<nRatio> The calculated ratio.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 246

Sample:

local cVar := DispFontPerSize()

Source Code:

SOURCE\FUNCTION\HARBOUR.PRG

2.4.70 Ditbackgrd()

Ditbackgrd() Previous Top Next

Draw a degraded color screen.

Syntax:

DitBackGrd(<hWnd> ,; <hDC> ,;<nRed>


,; <nGreen>,; <nBlue> )

Parameters:

<hWnd> Handler of the window to draw

<hDC> Device context of the window

<nRed> Red component colour

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 247

<nGreen> Green component colour

<nBlue> Blue component colour

Returns:

Nil

Source Code:

SOURCE\WINAPI\BACKGRND.C

2.4.71 DlgFindText()

DlgFindText() Previous Top Next

Standard Common Dialog FindText

Syntax:

DlgFindText(<cText>, <oEdit> ) \\
oDlg

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 248

Parameters:

<cText> Text to search

<oEdit> Edit box where the text is located where we


will carry out the search.

Returns:

<oDlg> Commun dialog box of search of texts.

Sample:

SOURCE\CLASSES\MGET.PRG ( to see method


Find () )

Source Code:

SOURCE\CLASSES\DLGFIND.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 249

2.4.72 Dotsadjust()

Dotsadjust() Previous Top Next

Adjust the resize dots in design mode.

Syntax:

DotsAdjust(<hWndParent>,;<hDot1>,;
<hDot2>,;<hDot3>,;<hDot4>,; <hDot5>,;
<hDot6>,;<hDot7>,;<hDot8> ) --> nil

In the IDE of FiveWin the controls are used in way of


design. To be able to them to change the size they
are adjusted some points in the sides and vertexes of
each control when they have the focus. These points
are in fact windows that it is necessary to adjust to
the control.

Parameters:

<hWndParent> Handler of the control in design mode

<hDot1> Handler of the point 1

<hDot2> Handler of the point 2

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 250

<hDot3> Handler of the point 3

<hDot4> Handler of the point 4

<hDot5> Handler of the point 5

<hDot6> Handler of the point 6

<hDot7> Handler of the point 7

<hDot8> Handler of the point 8

Returns:

Nil

Source Code:

SOURCE\FUNCTION\DOTS.C

2.4.73 DPToLP()

DPToLP() Previous Top Next

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 251

Converts device coordinates into logical coordinates

Syntax:

DPToLP( <hDC>, <aPoint> ) -->


<lSuccess>

This function converts device coordinates into logical


coordinates.

The result is stored again into the same aPoint array.

Parameters:

<hDC> The handle of the device context.

<aPoint> An array of two values { x, y } representing


the coordinate.

Returns:

<lSuccess> If the operation was successful.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 252

Source Code:

SOURCE\\WINAPI\\Point.c

See also:

LPToDP()

2.4.74 Draftmode()

Draftmode() Previous Top Next

Specifies the printer resolution

Syntax:

DraftMode( <lDraft> )

Parameters:

<lDraft> If this value is .t. the printer resolution is


DMRES_DRAF else is DMRES_HIGHT

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 253

Returns:

None

Source Code:

SOURCE\WINAPI\PRINTDC.C

2.4.75 DragAccept()

DragAccept() Previous Top Next

This window accept dropped files.

Syntax:

DragAccept(<hWnd>, <lOnOff> )

When an application calls DragAcceptFiles with


lOnOff set to .t., the user will recive an array "aFiles"
with the names of the files each time the user drops a
file in that window.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 254

Parameters:

<hWnd> Handler of the window that accept files

<lOnOff> Accept or not accept files

Returns:

nil

Sample:

CLASSES\WINDOW.PRG

Source Code:

SOURCE\WINAPI\DROPFILE.C

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 255

2.4.76 Dragfinish()

Dragfinish() Previous Top Next

Finish the dragfile operation

Syntax:

DragFinish(<hDrop> )

Parameters:

<hDrop> Handle that identifies the process of drag


and drop

Returns:

nil

Samples

CLASSES\WINDOW.PRG

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 256

Source Code:

SOURCE\WINAPI\DROPFILE.C

2.4.77 DragQueryFiles()

DragQueryFiles() Previous Top Next

Retrieves the file names of dropped files that have resulted from a successful drag-and-drop operation.

Syntax:

DragQueryFiles( <hDrop> ) --> aFiles

Parameters:

<hDrop> Handler of the drag and drop proccess

Returns:

<aFiles> An array of names of the dropped files.

Source Code:

SOURCE\WINAPI\DROPFILE.C

2.4.78 DragqueryPoint()

DragqueryPoint() Previous Top Next

Retrieves the coordinates of the cursor when a file is dropped

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 257

Syntax:

DragQueryPoint(<hDrop>, <aPoint> ) --
> lInClient

Parameters:

<hDrop> Handler of the drag and drop proccess

<aPoint> Array to get the point where the files are


dropped

Returns:

<lInClient> .t. if the file is dropped in the client area


of the window

Source Code:

SOURCE\WINAPI\DROPFILE.C

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 258

2.4.79 DrawBitmap()

DrawBitmap() Previous Top Next

FiveWin drawing bitmaps 16 colors function

Syntax:

DrawBitmap( <hDC>, <hBitmap>, <nRow>,


<nCol>, <nWidth>, <nHeight>,
<nRaster> ) --> nil

This function draws a bitmap (16 colors or 256 colors


without palette control) onto the specified device
context.

Parameters:

<hDC> The handle of the device context.

<hBitmap> The handle of the bitmap.

<nRow>, <nCol> The coordinates where to draw.

<nWidth>, <nHeight> The dimensions to adjust the


bitmap.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 259

<nRaster> A raster operation style, as follows:

BLACKNESS Turns all output black.


DSTINVERT. Inverts the destination bitmap
MERGECOPY Combines the pattern and the source bitmap by using the Boolean AND operator.
MERGEPAINT Combines the inverted source bitmap with the destination bitmap by using the
Boolean OR operator.
NOTSRCCOPY Copies the inverted source bitmap to the destination.
NOTSRCERASE Inverts the result of combining the destination and source bitmaps by using the
Boolean OR operator.
PATCOPY Copies the pattern to the destination bitmap.
PATINVERT Combines the destination bitmap with the pattern by using the Boolean XOR operator.
PATPAINT Combines the inverted source bitmap with the pattern by using the Boolean OR operator.
Combines the result of this operation with the destination bitmap by using the Boolean OR operator.
SRCAND Combines pixels of the destination and source bitmaps by using the Boolean AND
operator.
SRCCOPY Copies the source bitmap to the destination bitmap.
SRCERASE Inverts the destination bitmap and combines the result with the source bitmap by using
the Boolean AND operator.
SRCINVERT Combines pixels of the destination and source bitmaps by using the Boolean XOR
operator.
SRCPAINT Combines pixels of the destination and source bitmaps by using the Boolean OR
operator.
WHITENESS Turns all output white

Returns:

Nothing

Observations:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 260

We strongly recommend use of the FiveWin TBitmap


Class, as it is much easier to use and more powerful.

Sample:

SAMPLES\\Install.prg

Source Code:

SOURCE\\WINAPI\\BmpDraw.c

See also:

2.4.80 DrawFGetLine()

DrawFGetLine() Previous Top Next

Draws a GTF line.

Syntax:

DrawFGetLine( <hWnd>, <hDC>, <nRow>,


<nMargin>, <nAlign>, <aText>, <aFonts>,
<aColors>, <nClrPane>, <aBlock>,
<nCtrl> );
--> nCtrl

Parameters:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 261

<hWnd> The handle of the window where the text


is drawn.
<hDC> The device context where the text is
drawn.
<nRow> The row where the text is drawn.
<nMargin> The margin of the text.
<nAlign> The alignment of the text (ES_LEFT,
ES_RIGHT or ES_CENTER).
<aText> The internal implementation of a line of
GTF text (TFGet:oLine:aText).
<aFonts> The fonts used in the line of GTF text
(TFGet:oLine:aFonts).
<aColors> The colors used in the line of GTF text
(TFGet:oLine:aColors)
<nClrPane> The background color for the text.
<aBlock> ???.
<nCtrl> ???.

Returns:

<nCtrl> ???.

Sample :

Source code:

SOURCE\FUNCTION\FGETLINE.C

2.4.81 Drawfocusr()

Drawfocusr() Previous Top Next

It draws a rectangle to point out the focus of the control

Syntax:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 262

DrawFocusRect(<hDC>,; <nTop>,;
<nLeft>,; <nBottom>,;<nRight> )

Rectangle that skirts a control with the focus Mainly


in the buttons.

Parameters:

<hDC> Device context of the control

<nTop> Top coordinate

<nLeft> Left coordinate

<nBottom> Down coordinate

<nRight> Right coordinate

Returns:

nil

Source Code:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 263

SOURCE\WINAPI\RECTS.C

2.4.82 DrawGrayed()

DrawGrayed() Previous Top Next

It draws a button with disabled own drawing

Syntax:

DrawGrayed(<hDC>,; <hBitmap>,;
<nRow>,; <nCol> ) --> nil

Used to draw the buttons disabled in the bars of


buttons.

Parameters:

<hDC> Device Context of the control that contains


the bitmap

<hBitmap> Handler of the bitmap that we will draw in


gray tones

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 264

<nRow> Superior coordinate

<nCol> Left coordinate

Returns:

nil

Sample:

Source Code:

SOURCE\WINAPI\BMPDRAW.C

2.4.83 Drawgrid()

Drawgrid() Previous Top Next

It draws a grid of points in a design window.

Syntax:

DrawGrid( <hWnd>, <hDC>, <@cPS>,


<wGridX>, <wGridY> ) --> nil

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 265

Parameters:

<hWnd> The handle of the window where we will


paint

<hDC> Device context where we will paint

<@cPS> Not used

<nGridX> Horizontal separation of the points

<nGridY> Vertical separation of the points

Returns:

Nil

Sample:

Source Code:

SOURCE\FUNCTION\DRAWGRID.C

2.4.84 DrawIcon()

DrawIcon() Previous Top Next

Draws an Icon

Syntax:

DrawIcon( <hDC>, <nRow>, <nCol>,


<hIcon> ) --> <lSuccess>

This function draws an icon at the specified device

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 266

context.

Parameters:

<hDC> The handle of the device context where to


draw.

<nRow>, <nCol> The coordinates where to paint.

<hIcon> The handle of the icon.

Returns:

<lSuccess> A logical value that it is true if the


operation was successful.

Observations:

The handle of the icon must be loaded with LoadIcon()

We strongly recommend use of FiveWin TIcon Class


as it is much more powerful and easy to use.

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 267

Source Code:

SOURCE\\WINAPI\\Icons.c

See also:

LoadIcon() ExtractIcon() nIcons()

2.4.85 DrawIconFocus()

DrawIconFocus() Previous Top Next

Draws an Icon with focus.

Syntax:

DrawIconFocus( <hDC>, <nRow>, <nCol>,


<hIcon> ) --> <lSuccess>

This function draws an icon at the specified device


context.

Parameters:

<hDC> The handle of the device context where to


draw.

<nRow>, <nCol> The coordinates where to paint.

<hIcon> The handle of the icon.

Returns:

© 2011 Infosys Argentina


SCRIPT Lims - Funciones Avanzadas Alphabetically ordered 268

<lSuccess> A logical value that it is true if the


operation was successful.

Observations:

The handle of the icon must be loaded with LoadIcon()

We strongly recommend use of FiveWin TIcon Class


as it is much more powerful and easy to use.

Source Code:

SOURCE\WINAPI\Icons.c

See also:

LoadIcon() ExtractIcon() nIcons()

2.4.86 DrawMasked()

DrawMasked() Previous Top Next

To draw a bitmap with transparent bottom

Syntax:

DrawMasked(<hDC>,;<hBitmap>,; <nRow>,;
<nCol> ) --> nil

Function written in language " C " that draws a bitmap


combining it with their corresponding mask for to be
able to eliminate the bottom of the mentioned bitmap.
Used mainly in the menus.

© 2011 Infosys Arge