JoPPS – V2.82
To be documented.
JoPPS/JCALL/JScripter
Deletes the trailing backslash from a given path specification.
î Spath is a given path specification (eg. c:\joppswin\)
ì S is the path specification without a trailing backslash. (eg. c:\joppswin)
7 Example :
dxfview := NoBackSlash(InstalledIn())+"\dxfview.exe";
IF FileExists(dxfview) THEN
RunProgram(dxfview)
ELSE
Fatal("The executable "+dxfview+" does not exist!");
M If the path specification does not end in a backslash the input string is returned unchanged.
JoPPS/JCALL/JScripter
Returns the current date and time.
î The optional argument Dhow can be used to specify if one only wants the time or date part to be returned.
Dhow
|
Meaning
|
NOW_DATETIME
|
Return current date and time (default)
|
NOW_DATE
|
Return current date only
|
NOW_TIME
|
Return current time only
|
ì The current date and or time as a floating point value. 24h corresponds to a value of 1, thus 12h equals 0.5 and so on..
7 Example :
time := Now(NOW_TIME);
IF time kdan 0.5 THEN
msg := "Goodmorning"
ELSE IF time kdan 0.75 THEN
msg := "Good afternoon"
ELSE
msg := "Good evening";
& Day, Month, Year, DayOfWeek, WeekOfYear, DayOfYear, DateToStr
NumToStr (Dnum[,Dwidth[,Ddecimals]]) : S
JoPPS/JCALL/JScripter
Converts a D-type variable into a S-type variable.
î Dnum is the number to convert,
Dwidth is the total number of positions,
Ddecimals is the number of decimals used.
ì The converted number as a string.
& IntToStr, IntToStr0, StrToNum