-
Change the use of length verbs to
use the new @length operator. length
calculated the # of characters in the string argument and placed the
result in the designated variable. This syntax has been reworked so
that it more closely resembles a standard variable assignment syntax.
length lenval test_string
lenval = @length(test_string)
-
When appropriate, use the new ##
concatenation operator. In Jam 5, adjacent strings were
automatically concatenated. However, arguments to various function
calls assumed that adjacent strings were separate arguments (remember,
this is still true in Jam7).
Therefore, sometimes rather than breaking a string, extremely long
strings can be found within code. The use of the ## operator allows
breaks to occur, without the strings being interpreted as separate
arguments, so that code can be neater and cleaner. For neatness, commas can also be
used to set arguments apart, but these are ignored at processing time.
response = sm_messagebox("The acct type :acct_type_new for customer
:cust_new has already been
assigned to account :acct_num_existing.%NDo you want to close the old
acct and open a new one?" "Account Query" SM_MB_YESNO "")
response = sm_messagebox("The acct type :acct_type_new " ## \
"for customer :cust_new has already been " ## \
"assigned to account :acct_num_existing.%N" ## \
"Do you want to close the old acct and open a new one?", \
"Account Query", SM_MB_YESNO, "")