initial commit

This commit is contained in:
Wifinigel 2023-01-19 21:27:15 +00:00
commit c782dde326
61 changed files with 1457 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# filename: ch9-04-create-global-func.rsc
# function to remove spaces from a string
#
# e.g. :local NoSpaceVar [$RemoveSpaceFunc "string with spaces"]
#
:global RemoveSpaceFunc do={
:local NewName ""
for i from=0 to=([:len $1]-1) do={
:local Tmp [:pick $1 $i]
:if ($Tmp !=" ") do={ :set NewName "$NewName$Tmp" }
}
:return $NewName
}
# --- end of function ---