New Version Released – DBP_NETLIB_v1.4.3.zip July, 2004
Full Function Listing:
DBP_NETLIB - .NET LIBRARY PLUGIN FOR DARK BASIC PROFESSIONAL
------------------------------------------------------------------------------
DBP_NETLIB.DLL – by CattleRustler (VB.NET)
DBP_NETLIB_CPP.DLL - by Exeat (C++)
RELEASE DATE - July, 2004
VERSION - v1.4.3
THE LIBRARY:
Below is a listing of the 65 library functions arranged by category.
VARIABLE WATCHER FUNCTIONS:
vw_StartWatcher()
vw_StopWatcher()
vw_SendInt()
vw_SendStr()
vw_SendFlt()
CONSOLE FUNCTIONS:
con_StartConsole()
con_StopConsole()
con_NewMessage()
con_AppendMessage()
GENERAL FUNCTIONS:
gen_PrevInst()
gen_GetPID()
gen_GetLocalName()
gen_GetLocalIP()
gen_MsgBox()
gen_InputBox()
gen_RunApp()
gen_OpenFileDialog()
gen_DirDialog()
gen_SaveFileDialog()
gen_GetSysDir()
gen_GetTempDir()
gen_GetLogicalDrives()
gen_GetVolumeLable()
gen_GetNETVer()
gen_GetProcessList()
FILE FUNCTIONS:
fil_GetINIKey()
fil_WriteINIKey()
fil_AppendLog()
fil_AppendFile()
fil_OutputFile()
fil_DeleteFile()
fil_GetFileToString()
fil_GetAttrib()
fil_SetAttrib()
fil_CopyFile()
fil_CopyDir()
fil_LoadFile()
fil_GetLineAsStr()
fil_GetLineAsInt()
fil_GetLineAsFlt()
STRING FUNCTIONS:
str_InStr()
str_InStrRev()
str_Mid()
str_Split()
str_GetSplit()
str_Replace()
str_ChangeCase()
str_Left()
str_Right()
str_Remove()
str_PadLeft()
str_PadRight()
str_Insert()
DATE & TIME FUNCTIONS:
dt_GetNow()
dt_GetMonth()
dt_GetDay()
dt_GetYear()
dt_GetHour()
dt_GetMinute()
dt_GetSecond()
TYPE CONVERSION FUNCTIONS:
tc_StrToInt()
tc_IntToStr()
tc_StrToFlt()
tc_FormatNum()
DIRECT X FUNCTIONS:
dx_GetVersion()
-----------------------------------------------------
more to come
Modifications:
* gen_FileDialog() was renamed to gen_OpenFileDialgog(), args remain the same
* fil_GetFileToString(filename) which previously returned a line-break delimited string now returns a comma-delimited string with the extra trailing comma truncated (eg. “data1,data2,data3”)
Additions:
* gen_SaveFileDialog(InitialDir, Filter) – provides a standard windows save file dialog which allows a file name to be selected or typed into the text field. The full path and file name are returned as a string.
* fil_DeleteFile(filename) – deletes the specified file
* gen_GetProcessList() – returns the system process list as a comma-delimited string.
* fil_LoadFile(filename) – parses the specified file into a string array which is persisted in the dll. Each line of file becomes an individual element of the persisted array. Successive calls to this function completely flush and reload the data stored in the array. This function returns an Integer which indicates the Upper-Bound index in the array and is zero based - A return value of negative one (-1) indicates an error has occurred. Use this function with the following three functions…
* fil_GetLineAsStr(index)
* fil_GetLineAsInt(index)
* fil_GetLineAsFlt(index)
Each of the above functions returns the data from the specified Index of the Array created by the most recent call to fil_LoadFile(). You can return All, some, or individual pieces of data as strings, integers, or floats – with all type conversion handled in the dll.
Other Notes:
* The file reading functions above all contain error handlers and error logging, see the docs for details.
* fil_LoadFile() can be used in conjunction with DIM to help determine the correct size an array should be defined to, for later use with other DBP functions like LOAD ARRAY(). It is no longer necessary to know the length of a file ahead of time, that you intend to load into a dbp array.
DBP CODE Example:
DIM myArray(fil_LoadFile(filename)) as String
LOAD ARRAY “myfile.txt”, myArray(0)
All questions and comments welcome
Obtain the plugin by clicking the logo below
Thanks,
CattleRustler & Exeat
* DBP_NETLIB_v1.4.3 - July, 2004 * Click Logo