D
Dymondjack
Hello again and thakns in advance.
A theoretical question:
I've read in a few different places that depending on the usage of a string
value, occasionally the presence of an apostrophe might cause some trouble
(specifically with sql statements I believe). To make sure this won't be an
issue, I have an idea to set up two functions, one before saving the record
to replace the ' with ^^ (I use this in code templates to let me know I need
to add the variable name... it seems to have no system value when doubled
like so), and one function that will convert the ^^ back to a ' in any place
that the string value might be visible but the user. I haven't chosen the
events I want to run them on yet, but that will be a decision for a different
day. So my question is twofold...
1) Is my idea for handling the situation way off track, or is there a much
easier way to approach this that I haven't been enlightened on, and
2) Is this really any issue at all? I've never run into a case where an
apostrophe has caused error, but I would like to cover every possible error
that might come up over the course of my project.
Thanks much,
Jack
A theoretical question:
I've read in a few different places that depending on the usage of a string
value, occasionally the presence of an apostrophe might cause some trouble
(specifically with sql statements I believe). To make sure this won't be an
issue, I have an idea to set up two functions, one before saving the record
to replace the ' with ^^ (I use this in code templates to let me know I need
to add the variable name... it seems to have no system value when doubled
like so), and one function that will convert the ^^ back to a ' in any place
that the string value might be visible but the user. I haven't chosen the
events I want to run them on yet, but that will be a decision for a different
day. So my question is twofold...
1) Is my idea for handling the situation way off track, or is there a much
easier way to approach this that I haven't been enlightened on, and
2) Is this really any issue at all? I've never run into a case where an
apostrophe has caused error, but I would like to cover every possible error
that might come up over the course of my project.
Thanks much,
Jack