[Gambas-user] Question about REPLACE$

nando nando_f at ...951...
Sun Jan 1 04:33:36 CET 2012


Question: Code piece

  dim i as integer
  dim s as string

  i = 12345
  s = "the number is <NUM>"

  Replace$( s , "<NUM>", STR$(i) , gb.case)
  Replace$( s , "<ABC>", STR$(i) , gb.case)


The first Replace will do the substitution
The second Replace will not do the substitution

The Question is this:

 will the second Replace internally perform the STR$(i) conversion
 to be ready for a possible substitution even though there are
 no substitutions to do?
 
-Fernando




More information about the User mailing list