The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
concatenation of a str and a str function result (*solved*)
#2
programandala.net Wrote:One of the tries caused both errors at the same time (string into value and vice versa!):
Code:
let temp = "Son las "+stringIf(true,":")

The following calculation causes both errors at the same time too:

Code:
dim grade(1 to 10) as string dim newGrade as ubyte let grade(i)=stringIf(newGrade<10," ")+str(newGrade)

Quote:...:869: Cannot convert string to a value. Use VAL() function
...:869: Cannot convert value to string. Use STR() function

It seems it happens when I try to concatenate a literal string or a string function (like str) with the string output returned by a defined string function.

(I'm using version 1.2.5, I forgot)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)