Here is an unnofficial list of DBpro undocumented commands. Note: there might be a reason as to why they are undocumented, ex: they might have bugs, etc. Some may not even do anything
Some of these have been very useful to me, and I'm sure others will find them useful also
Others, I just found from this post and would have been very helpful if I had known about them earlier
.
Here is the current list:
return string_until_token$ = FIRST TOKEN$(str$, token$)
return string_till_next_token$ = NEXT TOKEN$(token$)
ALWAYS ACTIVE ON `app does process when not active window [default]
ALWAYS ACTIVE OFF `app doesn't process when not active window
integer width = IMAGE WIDTH(imageNumber)
integer height = IMAGE HEIGHT(imageNumber)
MAKE ARRAY FROM MEMBLOCK arrayName(),memblockNumber
MAKE MEMBLOCK FROM ARRAY memblockNumber,arrayName()
DELETE OBJECTS startNum,endNum
3DS2X threeDSfilename$,Xfilename$ `converts .3ds to .x file
integer exist = WINDOW EXIST(windowName$)
WINDOW TO FRONT
WINDOW TO BACK
WINDOW TO FRONT name$
WINDOW TO BACK name$
rem these icon commands may be buggy and/or partially removed
dword handle = LOAD ICON(filename$)
DELETE ICON dword_handle
SAVE ICON FROM IMAGE iconFilename$,imageNumber `converts an image to a .ico file
dword pos = FIND FIRST CHAR$(source$,char$) `like inString( from other langs
dword pos = FIND LAST CHAR$(source$,char$)
dword pos = FIND SUB STRING$(source$,substring$)
bool samecase = COMPARE CASE$(stringA$,stringB$)
REVERSE$ string$
APPEND$ string$,attachString$
string$ = FREE STRING()
PRINTC text$ `doens't go to new line, like print text$;
MAKE GAME style$,hero$,enemy$,plot$ `don't ask, try it :)
PLAY GAME
END GAME
Everyone is welcome to add to these if they know of more.
-Xol