Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
'Cannot Access characters beyond string'
Hi,
This is concerning the error 'Cannot Access characters beyond string' and 'Set talk off/on'.
I realized that using substr functions like substr(alltrim("ABC "),4,1), with SET TALK ON gives the Program Error - 'Cannot Access characters beyond string'
But when Set Talk is OFF there are no errors and the above substr function returns an empty string. In my program, can, I just turn TALK OFF and thereby avoid the error? Would this be the right way to fix this problem? or do I need to verify the length of the strings and make sure that such substr functions are not executed?
Ria
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement