Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jhonken #1
vbscript to cfscript
I'm trying to assign a value to an object. I have an example in asp that works
and I'm trying to get it to work in cfscript. Here's the vbscript: Set
oSegment = oInterchange.GetDataSegmentHeader oSegment.DataElementValue(1) =
'00' oSegment.DataElementValue(3) = '00' oSegment.DataElementValue(5) =
'12' oSegment.DataElementValue(6) = 'ABC_STORE_ID'
oSegment.DataElementValue(7) = '12' oSegment.DataElementValue(8) =
'SUPPLIER_ID' oSegment.DataElementValue(9) = right(sPODate,6)
oSegment.DataElementValue(10) = left(sPONumber,4)
oSegment.DataElementValue(11) = 'U' oSegment.DataElementValue(12) = '00401'
oSegment.DataElementValue(13) = '000000020'
oSegment.DataElementValue(14) = '0' oSegment.DataElementValue(15) = 'T'
oSegment.DataElementValue(16) = '>' --------Here's the cfscript I'm trying to
use: oSegment = oInterchange.GetDataSegmentHeader;
oSegment.DataElementValue(1, '00'); oSegment.DataElementValue(2, '00');
oSegment.DataElementValue(5, '12'); oSegment.DataElementValue(6,
'ABC_STORE_ID'); oSegment.DataElementValue(7, '12');
oSegment.DataElementValue(8, 'Supplier_ID'); oSegment.DataElementValue(9,
'12-21-04'); oSegment.DataElementValue(10, '12345');
oSegment.DataElementValue(11, 'U'); oSegment.DataElementValue(12, '00401');
oSegment.DataElementValue(13, '000000020'); oSegment.DataElementValue(14, '0');
oSegment.DataElementValue(15, 'T'); oSegment.DataElementValue(16, '>'); CF
isn't erroring but the data is not being assigned. The numeric number is the
DataelementValue number that is assigned. The second variable is the data that
should be saved in that Dataelementvalue which isn't saving.
jhonken Guest
-
looping over a structure using cfscript
Hi, I am passing form variables to a function. What i want is to be abled to loop throught the form variables which is a structure and then for... -
cfscript auto capitalize help
Hey you cfscript experts! I have an auto-capitalize script that I use on my forms for capitalizing names and such. If the user enters ALLCAPS,... -
cfscript
since i cannot find the cf and java integration thread, gues i will post this here: i wrote a cfm with cfscript that utilizes java which connects... -
<cfscript> autocaps problem </cfscript> - betcha can't fix this!
First, I'll tell you up front that I am clueless when it comes to cfscript. So I apologize if this question is off topic. I have a nice little... -
cfscript and variables
I'm using cfscript against a COM object. In VB the paramater is passed like: Set oSegment = oTransactionset.CreateDataSegment('BEG')...



Reply With Quote

