Delphi Programming
Advertisement

Someone should add the functions listed here (from Nick's blog, posting by Dan Barclay):


>>>>>>

1/10/2006 4:25:50 PM (Central Standard Time, UTC-06:00)
Somebody told me my phone was ringing over here. As I've mentioned in the newsgroups, 
I'm intrigued by how helpful the Live Templates could be. Here are a handful of 
funcitions. I guess I'm going to have to get D2006 to try out your critter.

Feel free to change the Delphi equivalent, those are just some that come to mind.

Functions:
asc ord
cbyte byte
cdbl double
cint trunc
cstr format ???ToStr
doevents application.processmessages
fix truncate
instr pos / posex (watch param order!)
int truncate
lbound low
lcase lowercase
left ansileftstr
len length
ltrim trimleft
mid copy ... but is that .Net friendly? Seems to be pointerish.
msgbox showmessage ?
right ansirightstr
rtrim trimright
str ???ToStr
ubound high
ucase uppercase


Files: (suggestions for W32/.Net Friendly conversions? Streams? assignfile/reset and friends? )
Freefile
Open
Read
Write
seek
Put
Get
Close


Types:
integer smallint (or integer if fixed type OK))
long longint (or integer if fixed type OK)

Other:
= := ?!?!?!!!(aka dammit)
then there's that whole begin/end thing.

Later,
Dan
Dan Barclay |DanAT NOSPAMMVPs dot org

>>>>>
Also, Replace -> StringReplace
Advertisement