Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ScottP #1
Inserting a variable to a text string
Hello, I am working on a product catalog for our companies website and have
run into a hiccup. I need a way to insert a text variable into the middle of a
retrieved text string. Example: Part Number retrieved: 225x226FGV I need a
finish code retrieved from the same database to be inserted into the viewed
part number thus: 226x226AFGV I hope this is enough information to help..
Thanks, Scott
ScottP Guest
-
inserting # in a string
I'm trying to insert a string that contains a # into an access database. But I get an error: Your expression might be missing an ending "#" (it... -
String to Variable
Need some help with the following: I want to use global Variable in a if statement . The name of the variable is 'made' from some text and the... -
Inserting Text
Does anyone know if it is possible to insert text in Adobe Acrobat Professional 6.0. I've just purchased this product and thought this was something... -
How to replace a variable string within /* variable_string */ with x for each character in string?
How to replace a variable string within /* variable_string */ with x for each character in string? The string may span on multiple lines. for... -
Parsing string and inserting characters into it.
b = "08305212" b = left(b, 4) & "." & right(b, len(b)-4) "Bill" <billzimmerman@gospellight.com> wrote in message... -
philh #2
Re: Inserting a variable to a text string
Depends on the part number construction. I take it you have shorter and longer
part numbers. Is the alpha code on the end always three characters long? If
so, then <cfset dsppartnum =
mid(partnum,1,len(partnum)-3)&finishcode&mid(partnum,len(partnum)-2,3)>
HTH,
philh Guest
-
ScottP #3
Re: Inserting a variable to a text string
Thanks for getting back to me so quickly. The alpha at the end is sometimes 0, 2, or 3 characters depending on the part number.
ScottP Guest
-
philh #4
Re: Inserting a variable to a text string
Is it always a divide between the numeric and alpha portions? You could probably write a regular expression or an evaluation loop to find the break, or, in the case of 0 chars, the end of the string.
philh Guest
-
ScottP #5
Re: Inserting a variable to a text string
Great. Thanks for the quick help. I will try this and let you know..
ScottP Guest



Reply With Quote

