This is an old revision of the document!
Dream Scrip has numerous in-build function to perform various tasks.
Usually starts with “#” (Ex: #date). Some excepts parameters and others don't
Function | Parameters | Description | Example |
---|---|---|---|
Function | Parameters | Description | |
#adcart | |||
#age | Caculate the age from a given date | ||
#all | |||
#app | |||
#arandom | |||
#arg | |||
#assetpath | |||
#bash | |||
#box | |||
#captcha | |||
#cart | |||
#char | ASCII value | ||
#chart | |||
#chec | |||
#command | |||
#config | |||
#consolidate | set #consolidate=“true” | ||
#count | |||
#cper | |||
#cr | |||
#cur | |||
#current | |||
#currentform | |||
#cyc | |||
#cyear | |||
#cyp | |||
#date | |||
#day | (Date) | ||
#db | |||
#dec | |||
#def | |||
#df | |||
#dir | |||
#dream | (dreamname.property) | ||
#du | du(zvalue) | ||
#encode | |||
#enh/#enhanced | |||
#err | true | ||
#evalx | |||
#exceltocsv | (filepath) | ||
#exch | (cur,date) | ||
#exist | |||
#exists | (filepath) | ||
#extract | |||
#field | (fieldname.property) | ||
#file | (sql,filler,marker) | ||
#file | (path) | ||
#filearray | (“path,cont,ext”) | ||
#fillsql | |||
#fit | (key,sep,sql) | ||
#form | |||
#format | |||
#fper | (date) | ||
#fyear | (date) | ||
#get | |||
#glall | |||
#global | |||
#gloffset | |||
#glper | |||
#glset | |||
#glxset | |||
#glyear | |||
#hash | |||
#he HTML Encoder| | | | #hhmm | | | | #htm | | | | #http | | | | #id | | | set zid=#id | #index | | | | #intersect | | | | #inv | | | | #ip | | | | #irr | | | | #job | (desc,command,obj) | | | #json | | | | #json | (buffer, file filename) | | | #json | (buffer, text) | | | #jsonar | | | | #jsonob | | | | #last | | | | #le | | | | #legacy | (models) | | | #list | (listname.property) | | set #list(reclist.caption) = #char(34)+“Allocated Receipt List”+#char(34) | #load | | | set file=xfolderfrom+xfilefrom+“.dic”, set xtext=#load(file) | #loc locale | |||
#log | |||
#login | |||
#long/longtodate | |||
#longtomac | |||
#lower | |||
#mactolong | |||
#math | |||
#max | |||
#maxdate | |||
#mess/messaging | |||
#model | |||
#modul | |||
#module | |||
#month | |||
#monthname | |||
#monthshort | |||
#mprofile | |||
#nam | |||
#nextrev | (fieldname,size) | ||
#nohtml | |||
#now | |||
#org | |||
#padl | (str,length, pad) | ||
#padr | |||
#parse | (name,text,sep,reverse) | ||
#password | (email,password) | ||
#path | (email,password) | ||
#pick | (fieldname) | ||
#proc/process | |||
#profile | (propname) | ||
#prop | |||
#prop | (str,propname) | ||
#query | (searchexp fieldlist) | ||
#ran | |||
#real | |||
#regex | (value,regex) | ||
#regreplace | (value,regex,str) | ||
#rend | |||
#replace | (target,substring,newstring) | ||
#report | |||
#reslist | |||
#respath | |||
#result | |||
#ret | |||
#rm | |||
#roo | |||
#round | |||
#row | |||
#save | (file,text) | ||
#separator | |||
#servlet | |||
#session | (user,pwd,id) | ||
#sha1 | (Str) | ||
#show | (object, param,…) | ||
#singlecurrency | |||
#site | |||
#skin | |||
#smsg | |||
#soap | (dest, file filename) | ||
#split | (name,text,width,sep) | ||
#sql | |||
#sqlfill | (“select …”) | ||
#sqllist | (“ | ”,“select …”) | |
#status | (field, index) | ||
#sub | (str, pos, length) | ||
#sysperiod | |||
#system | |||
#sysuser | |||
#sysyear | |||
#template | (source,template,sep,placeholder) | ||
#test | |||
#text | (textname) | ||
#this | (scheme/name/port) | ||
#thumbnail | |||
#time | |||
#trim | (arg) | ||
#trn | (type,trn) | ||
#true | |||
#unz | |||
#upper | (arg) | ||
#url | |||
#valid | (date) | ||
#verr | |||
#vmsg | |||
#wday | (date) | ||
#wiki | (file file), | ||
#wiki | (text text) | ||
#xml | (buffer, file filename) | ||
#xml | (buffer, text) | ||
#xmlattrfind | (s,tag.attrib) | ||
#xmlattrreplace | (s,tag.attrib,r) | ||
#xmltagfind | (s,tag) | ||
#xmltagreplace | (s,tag,r) | ||
#year | |||
#zidfill | |||
#zip | (zipfile,ext,contains) | ||
#zipent |