"Input" does not exist in current context

I have no idea what this error means! Can someone please point me in the correct direction?

Hey Anthony,

Can you share the code behind the error message?

StringBuilder desc = new StringBuilder();

if (Inputs.cmbBody.Value != β€œβ€) desc.AppendLine("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);
if (Inputs.cmbUnderBodyBox.Value != β€œβ€) desc.AppendLine("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);
if (Inputs.cmbUnderBodyBoxSR.Value != β€œβ€) desc.AppendLine("DRIVER’S SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);
if (Inputs.cmbUnderBodyBoxCF.Value != β€œβ€) desc.AppendLine("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);
if (Inputs.cmbTopSideBoxSSR.Value != β€œβ€) desc.AppendLine(β€œPACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);
if (Inputs.cmbTopSideBoxCS1.Value != β€œβ€) desc.AppendLine(β€œBED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);
if ((Inputs.cmbBody.Value != β€œβ€) || (Inputs.cmbUnderBodyBoxSR.Value != β€œβ€) || (Input.cmbUnderBodyBoxCF.Value !=””) || (Inputs.cmbTopSideBoxCS1.Value != β€œβ€) || (Inputs.cmbTopSideBoxSSR.Value != β€œβ€) || (Inputs.cmbUnderBodyBox.Value != β€œβ€)) desc.AppendLine();

if (Inputs.cmbBackupSensor.Value != β€œβ€) desc.AppendLine("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);
if (Inputs.cmbBackupAlarm.Value != β€œβ€) desc.AppendLine("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);
if (Inputs.cmbFireExt.Value != β€œβ€) desc.AppendLine("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);
if (Inputs.cmbSafetyKit.Value != β€œβ€) desc.AppendLine("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);
if (Inputs.cmbCamera.Value != β€œβ€) desc.AppendLine("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);
if ((Inputs.cmbBackupSensor.Value != β€œβ€) || (Inputs.cmbCamera.Value != β€œβ€) (Inputs.cmbSafetyKit.Value != β€œβ€) || (Inputs.cmbFireExt.Value != β€œβ€) || (Inputs.cmbBackupAlarm.Value != β€œβ€)) desc.AppendLine();

if (Inputs.cmbFirstAid.Value != β€œβ€) desc.AppendLine("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);
if (Inputs.cmbLiftgate.Value != β€œβ€) desc.AppendLine("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);
if (Inputs.cmbCranes.Value != β€œβ€) desc.AppendLine("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);
if (Inputs.cmbLadderRack.Value != β€œβ€) desc.AppendLine("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);
if ((Inputs.cmbFirstAid.Value != β€œβ€) || (Inputs.cmbLiftgate.Value != β€œβ€) || (Inputs.cmbCranes.Value != β€œβ€) || (Inputs.cmbLadderRack.Value != β€œβ€)) desc.AppendLine();

if (Inputs.cmbCH.Value != β€œβ€) desc.AppendLine ("WINCH- " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbFrontEnd.Value != β€œβ€) desc.AppendLine("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);
if (Inputs.cmbNerfBars.Value != β€œβ€) desc.AppendLine("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);
if (Inputs.cmbCellBoost.Value != β€œβ€) desc.AppendLine ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);
if (Inputs.cmbInverter.Value != β€œβ€) desc.AppendLine ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);
if ((Inputs.cmbCH.Value != β€œβ€) || (Inputs.cmbFrontEnd.Value != β€œβ€) || (Inputs.cmbNerfBars.Value != β€œβ€) || (Inputs.cmbCellBoost.Value != β€œβ€) || (Inputs.cmbInverter.Value != β€œβ€)) desc.AppendLine();

if (Inputs.cmbCornerStrobe.Value != β€œβ€) desc.AppendLine("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);
if (Inputs.cmbLightBar.Value != β€œβ€) desc.AppendLine("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);
if (Inputs.cmbWorkLights.Value != β€œβ€) desc.AppendLine("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);
if (Inputs.cmbCompLights.Value != β€œβ€) desc.AppendLine("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);
if (Inputs.cmbSideRails.Value != β€œβ€) desc.AppendLine("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != β€œβ€) desc.AppendLine("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != β€œβ€) desc.AppendLine("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != β€œβ€) desc.AppendLine("SOLID SIDES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbCornerStrobe.Value != β€œβ€) || (Inputs.cmbWorkLights.Value != β€œβ€) || (Inputs.cmbLightBar.Value != β€œβ€) || (Inputs.cmbCompLights.Value != β€œβ€))desc.AppendLine();

if (Inputs.cmbHeadRack.Value != β€œβ€) desc.AppendLine("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);
if (Inputs.cmbRH.Value != β€œβ€) desc.AppendLine("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);
if (Inputs.cmbVise.Value != β€œβ€) desc.AppendLine("VISE - " + Inputs.txtViseQuoteDesc.Value);

if (Inputs.cmbCodeLock.Value != β€œβ€) desc.AppendLine("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);
if (Inputs.cmbSpray.Value != β€œβ€) desc.AppendLine ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);
if ((Inputs.cmbHeadRack.Value != β€œβ€) || (Inputs.cmbRH.Value != β€œβ€) || (Inputs.cmbVise.Value != β€œβ€) || (Inputs.cmbCodeLock.Value != β€œβ€) || (Inputs.cmbSpray.Value != β€œβ€)) desc.AppendLine();

if (Inputs.cmbSideRails.Value != β€œβ€) desc.AppendLine ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSdes.Value != β€œβ€) desc.AppendLine("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != β€œβ€) desc.AppendLine ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSideQuoteDesc.Value);
if (Inputs.cmbSV1.Value != β€œβ€) desc.AppendLine ("DRAWER UNIT - " + Inputs.txtSV1QuoteDesc.Value);
if (Inputs.cmbC1V.Value != β€œβ€) desc.AppendLine ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);
if (Inputs.cmbCR.Value != β€œβ€) desc.AppendLine ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);
if (Inputs.cmbSR.Value != β€œβ€) desc.AppendLine ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);
if (Inputs.cmbSpareTire.Value != β€œβ€) desc.AppendLine("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);
if (Inputs.cmbPadlock.Value != β€œβ€) desc.AppendLine("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);
if (Inputs.cmbGrillGuard.Value != β€œβ€) desc.AppendLine("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);
if (Inputs.cmbC2V.Value != β€œβ€) desc.AppendLine("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);
if (Inputs.cmbCompressor.Value != β€œβ€) desc.AppendLine("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);
if (Inputs.cmbS2V.Value != β€œβ€) desc.AppendLine("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);
if (Inputs.cmbBeaconLight.Value != β€œβ€) desc.AppendLine("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);
if (Inputs.cmbBumpers.Value != β€œβ€) desc.AppendLine("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);
if (Inputs.cmbSH.Value != β€œβ€) desc.AppendLine("GPS - " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != β€œβ€) desc.AppendLine("TIRES - " + Inputs.txtSolidSideQuoteDesc.Value);

if ((Inputs.cmbSideRails.Value != β€œβ€) || (Inputs.cmbSides.Value != β€œβ€) || (Inputs.cmbFoldDownSide.Value != β€œβ€) || (Inputs.cmbSR.Value != β€œβ€) || (Inputs.cmbSV1.Value != β€œβ€) || (Inputs.cmbC1V.Value != β€œβ€) || (Inputs.cmbSpareTire.Value != β€œβ€) || (Inputs.cmbSH.Value != β€œβ€) || (Inputs.cmbSolidSide.Value != β€œβ€) || (Inputs.cmbBumpers.Value != β€œβ€) || (Inputs.cmbBeaconLight.Value != β€œβ€) || (Inputs.cmbS2V.Value != β€œβ€) || (Inputs.cmbCompressor.Value != β€œβ€) || (Inputs.cmbC2V.Value != β€œβ€) || (Inputs.cmbGrillGuard.Value != β€œβ€) || (Inputs.cmbPadlock.Value != β€œβ€) || (Inputs.cmbCR.Value != β€œβ€)) desc.AppendLine();
if (Inputs.chkWT.Value != false) desc.AppendLine (β€œWINDOW TINTING REQUIRED”);

if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value || Inputs.chkPDIDOT.Value || Inputs.chkDOTOnly.Value || Inputs.chkTexInspecOnly.Value);
{
if (Inputs.chkPDI.Value)
{
desc.AppendLine (β€œPDI ONLY INCLUDED”);
}
if (Inputs.chkPDISTate.Value)
{
desc.AppendLine (β€œPDI and STATE INSPECTION INCLUDED”);
}
if (Inputs.chkDOTOnly.Value)
{
desc.AppendLine (β€œDOT INSPECTION ONLY INCLUDED”);
}
if (Inputs.chkPDIDOT.Value)
{
desc.AppendLine (β€œPDI and DOT INSPECTION INCLUDED”);
}
if (Inputs.chkTexInspecOnly.Value)
{
desc.AppendLine (β€œTEXAS INSPECTION ONLY INCLUDED”);
}
}

Inputs.edtPartDescription.Value = desc.ToString();

This is a UD Method

Hey,

I think you wrote β€œInput” instead of β€œInputs” on line 9.

You are the greatest! Thanks…let me give it a try now.

No…same error…


You were correct about the β€œs” on Inputs though.

I can see now that you have multiple errors. Mostly misspellings.

At line 50 you have written β€œcmbSdes” instead if β€œcmbSides”.
Capture2

Give me few minutes to look through the code.

Thank you!!!

Can you try this. Some of the Double quotes used in the code were different than others, so I changed them

StringBuilder desc = new StringBuilder();

if (Inputs.cmbBody.Value != "") desc.AppendLine("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);
if (Inputs.cmbUnderBodyBox.Value != "") desc.AppendLine("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);
if (Inputs.cmbUnderBodyBoxSR.Value != "") desc.AppendLine("DRIVER’S SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);
if (Inputs.cmbUnderBodyBoxCF.Value != "") desc.AppendLine("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);
if (Inputs.cmbTopSideBoxSSR.Value != "") desc.AppendLine("PACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);
if (Inputs.cmbTopSideBoxCS1.Value != "") desc.AppendLine("BED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);
if ((Inputs.cmbBody.Value != "") || (Inputs.cmbUnderBodyBoxSR.Value != "") || (Inputs.cmbUnderBodyBoxCF.Value !="") || (Inputs.cmbTopSideBoxCS1.Value != "") || (Inputs.cmbTopSideBoxSSR.Value != "") || (Inputs.cmbUnderBodyBox.Value != "")) desc.AppendLine();

if (Inputs.cmbBackupSensor.Value != "") desc.AppendLine("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);
if (Inputs.cmbBackupAlarm.Value != "") desc.AppendLine("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);
if (Inputs.cmbFireExt.Value != "") desc.AppendLine("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);
if (Inputs.cmbSafetyKit.Value != "") desc.AppendLine("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);
if (Inputs.cmbCamera.Value != "") desc.AppendLine("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);
if ((Inputs.cmbBackupSensor.Value != "") || (Inputs.cmbCamera.Value != "") (Inputs.cmbSafetyKit.Value != "") || (Inputs.cmbFireExt.Value != "") || (Inputs.cmbBackupAlarm.Value != "")) desc.AppendLine();

if (Inputs.cmbFirstAid.Value != "") desc.AppendLine("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);
if (Inputs.cmbLiftgate.Value != "") desc.AppendLine("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);
if (Inputs.cmbCranes.Value != "") desc.AppendLine("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);
if (Inputs.cmbLadderRack.Value != "") desc.AppendLine("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);
if ((Inputs.cmbFirstAid.Value != "") || (Inputs.cmbLiftgate.Value != "") || (Inputs.cmbCranes.Value != "") || (Inputs.cmbLadderRack.Value != "")) desc.AppendLine();

if (Inputs.cmbCH.Value != "") desc.AppendLine ("WINCH- " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbFrontEnd.Value != "") desc.AppendLine("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);
if (Inputs.cmbNerfBars.Value != "") desc.AppendLine("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);
if (Inputs.cmbCellBoost.Value != "") desc.AppendLine ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);
if (Inputs.cmbInverter.Value != "") desc.AppendLine ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);
if ((Inputs.cmbCH.Value != "") || (Inputs.cmbFrontEnd.Value != "") || (Inputs.cmbNerfBars.Value != "") || (Inputs.cmbCellBoost.Value != "") || (Inputs.cmbInverter.Value != "")) desc.AppendLine();

if (Inputs.cmbCornerStrobe.Value != "") desc.AppendLine("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);
if (Inputs.cmbLightBar.Value != "") desc.AppendLine("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);
if (Inputs.cmbWorkLights.Value != "") desc.AppendLine("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);
if (Inputs.cmbCompLights.Value != "") desc.AppendLine("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);
if (Inputs.cmbSideRails.Value != "") desc.AppendLine("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.AppendLine("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.AppendLine("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.AppendLine("SOLID SIDES - " + Inputs.txtSolidSidesQuoteDesc.Value);
if ((Inputs.cmbCornerStrobe.Value != "") || (Inputs.cmbWorkLights.Value != "") || (Inputs.cmbLightBar.Value != "") || (Inputs.cmbCompLights.Value != ""))desc.AppendLine();

if (Inputs.cmbHeadRack.Value != "") desc.AppendLine("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);
if (Inputs.cmbRH.Value != "") desc.AppendLine("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);
if (Inputs.cmbVise.Value != "") desc.AppendLine("VISE - " + Inputs.txtViseQuoteDesc.Value);

if (Inputs.cmbCodeLock.Value != "") desc.AppendLine("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);
if (Inputs.cmbSpray.Value != "") desc.AppendLine ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);
if ((Inputs.cmbHeadRack.Value != "") || (Inputs.cmbRH.Value != "") || (Inputs.cmbVise.Value != "") || (Inputs.cmbCodeLock.Value != "") || (Inputs.cmbSpray.Value != "")) desc.AppendLine();

if (Inputs.cmbSideRails.Value != "") desc.AppendLine ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);
if (Inputs.cmbSides.Value != "") desc.AppendLine("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);
if (Inputs.cmbFoldDownSide.Value != "") desc.AppendLine ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSideQuoteDesc.Value);
if (Inputs.cmbSV1.Value != "") desc.AppendLine ("DRAWER UNIT - " + Inputs.txtSV1QuoteDesc.Value);
if (Inputs.cmbC1V.Value != "") desc.AppendLine ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);
if (Inputs.cmbCR.Value != "") desc.AppendLine ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);
if (Inputs.cmbSR.Value != "") desc.AppendLine ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);
if (Inputs.cmbSpareTire.Value != "") desc.AppendLine("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);
if (Inputs.cmbPadlock.Value != "") desc.AppendLine("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);
if (Inputs.cmbGrillGuard.Value != "") desc.AppendLine("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);
if (Inputs.cmbC2V.Value != "") desc.AppendLine("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);
if (Inputs.cmbCompressor.Value != "") desc.AppendLine("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);
if (Inputs.cmbS2V.Value != "") desc.AppendLine("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);
if (Inputs.cmbBeaconLight.Value != "") desc.AppendLine("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);
if (Inputs.cmbBumpers.Value != "") desc.AppendLine("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);
if (Inputs.cmbSH.Value != "") desc.AppendLine("GPS - " + Inputs.txtSHQuoteDesc.Value);
if (Inputs.cmbSolidSide.Value != "") desc.AppendLine("TIRES - " + Inputs.txtSolidSideQuoteDesc.Value);

if ((Inputs.cmbSideRails.Value != "") || (Inputs.cmbSides.Value != "") || (Inputs.cmbFoldDownSide.Value != "") || (Inputs.cmbSR.Value != "") || (Inputs.cmbSV1.Value != "") || (Inputs.cmbC1V.Value != "") || (Inputs.cmbSpareTire.Value != "") || (Inputs.cmbSH.Value != "") || (Inputs.cmbSolidSide.Value != "") || (Inputs.cmbBumpers.Value != "") || (Inputs.cmbBeaconLight.Value != "") || (Inputs.cmbS2V.Value != "") || (Inputs.cmbCompressor.Value != "") || (Inputs.cmbC2V.Value != "") || (Inputs.cmbGrillGuard.Value != "") || (Inputs.cmbPadlock.Value != "") || (Inputs.cmbCR.Value != "")) desc.AppendLine();
if (Inputs.chkWT.Value != false) desc.AppendLine ("WINDOW TINTING REQUIRED");

if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value || Inputs.chkPDIDOT.Value || Inputs.chkDOTOnly.Value || Inputs.chkTexInspecOnly.Value);
{
if (Inputs.chkPDI.Value)
{
desc.AppendLine ("PDI ONLY INCLUDED");
}
if (Inputs.chkPDISTate.Value)
{
desc.AppendLine ("PDI and STATE INSPECTION INCLUDED");
}
if (Inputs.chkDOTOnly.Value)
{
desc.AppendLine ("DOT INSPECTION ONLY INCLUDED");
}
if (Inputs.chkPDIDOT.Value)
{
desc.AppendLine ("PDI and DOT INSPECTION INCLUDED");
}
if (Inputs.chkTexInspecOnly.Value)
{
desc.AppendLine ("TEXAS INSPECTION ONLY INCLUDED");
}
}

Inputs.edtPartDescription.Value = desc.ToString();

Same error again…

The red arrows points to the name of the input fields that are wrong. Can you validate that they are not misspelled (You can do that by clicking Ctrl + Space after the β€œInputs.” or by the Available selections Common-> Inputs) ?.

The text underlined with Blue shows the number of found errors.

Got it, I’m diving in now…

I’ve gotten it down to 1 error, but i don’t know what it means.

I’m not sure about this one, but I saw that there is a semicolon out of place:
Here:

Try to remove it and see if something changes.

No change at all, same 1 error, so I guess the semicolon didn’t belong after all.

It’s saying that the Method name is expected, where would I put that?

The Method name is Gen_Part_Desc

_EBRIDGE1UserFunctionsClientEventCollectionTmpl.cs (20.1 KB)

EPICOR is saying that it’s in this file, but I don’t know where!

I think the problem is coming from the StringBuilder().

I replaced the String Builder with a list of strings.

List<string> desc = new List<string>();

if (Inputs.cmbBody.Value != "") desc.Add("SERVICE BODY- " + Inputs.txtBodyQuoteDesc.Value);

if (Inputs.cmbUnderBodyBox.Value != "") desc.Add("PASSENGER SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDesc.Value);      

if (Inputs.cmbUnderBodyBoxSR.Value != "") desc.Add("DRIVER'S SIDE BOX- " + Inputs.txtUnderBodyBoxQuoteDescSR.Value);

if (Inputs.cmbUnderBodyBoxCF.Value != "") desc.Add("CROSSBOX- " + Inputs.txtUnderBodyBoxCFQuoteDesc.Value);

if (Inputs.cmbTopSideBoxSSR.Value != "") desc.Add("PACK RAT- " + Inputs.txtTopSideBoxSSRQuoteDesc.Value);          

if (Inputs.cmbTopSideBoxCS1.Value != "") desc.Add("BED SLIDE- " + Inputs.txtTopSideBoxCS1QuoteDesc.Value);

if ((Inputs.cmbBody.Value != "")  ||  (Inputs.cmbUnderBodyBoxSR.Value != "")  || (Inputs.cmbUnderBodyBoxCF.Value !="")  || (Inputs.cmbTopSideBoxCS1.Value != "")  || (Inputs.cmbTopSideBoxSSR.Value != "")  || (Inputs.cmbUnderBodyBox.Value != "")) desc.Add();

if (Inputs.cmbBackupSensor.Value != "") desc.Add("BACKUP SENSOR - " + Inputs.txtBackupSensorQuoteDesc.Value);

if (Inputs.cmbBackupAlarm.Value != "") desc.Add("BACKUP ALARM - " + Inputs.txtBackupAlarmQuoteDesc.Value);

if (Inputs.cmbFireExt.Value != "") desc.Add("FIRE EXT. - " + Inputs.txtFireExtQuoteDesc.Value);

if (Inputs.cmbSafetyKit.Value != "") desc.Add("SAFETY KIT - " + Inputs.txtSafetyKitQuoteDesc.Value);           

if (Inputs.cmbCamera.Value != "") desc.Add("REAR CAMERA - " + Inputs.txtCameraQuoteDesc.Value);

if ((Inputs.cmbBackupSensor.Value != "") || (Inputs.cmbCamera.Value != "") (Inputs.cmbSafetyKit.Value != "") || (Inputs.cmbFireExt.Value != "")  || (Inputs.cmbBackupAlarm.Value != "")) desc.Add();

if (Inputs.cmbFirstAid.Value != "") desc.Add("FIRST AID KIT - " + Inputs.txtFirstAidQuoteDesc.Value);

if (Inputs.cmbLiftgate.Value != "") desc.Add("LIFTGATE - " + Inputs.txtLiftgateQuoteDesc.Value);   

if (Inputs.cmbCranes.Value != "") desc.Add("BED COVER - " + Inputs.txtCranesQuoteDesc.Value);

if (Inputs.cmbLadderRack.Value != "") desc.Add("LADDER RACK - " + Inputs.txtLadderRackQuoteDesc.Value);

if ((Inputs.cmbFirstAid.Value != "")  || (Inputs.cmbLiftgate.Value != "")  ||  (Inputs.cmbCranes.Value != "") || (Inputs.cmbLadderRack.Value != "")) desc.Add();

if (Inputs.cmbCH.Value != "") desc.Add ("WINCH- " + Inputs.txtSHQuoteDesc.Value);

if (Inputs.cmbFrontEnd.Value != "") desc.Add("FRONTEND REPLACEMENT - " + Inputs.txtFrontEndQuoteDesc.Value);      

if (Inputs.cmbNerfBars.Value != "") desc.Add("STEP SIDES- " + Inputs.txtNerfBarsQuoteDesc.Value);

if (Inputs.cmbCellBoost.Value != "") desc.Add ("CELL BOOSTER - " + Inputs.txtCellBoostQuoteDesc.Value);

if (Inputs.cmbInverter.Value != "") desc.Add ("INVERTER - " + Inputs.txtInverterQuoteDesc.Value);     

if ((Inputs.cmbCH.Value != "")  || (Inputs.cmbFrontEnd.Value != "")  ||  (Inputs.cmbNerfBars.Value != "") || (Inputs.cmbCellBoost.Value != "") || (Inputs.cmbInverter.Value != "")) desc.Add();

if (Inputs.cmbCornerStrobe.Value != "") desc.Add("STROBE LIGHTS - " + Inputs.txtCornerStrobeQuoteDesc.Value);  

if (Inputs.cmbLightBar.Value != "") desc.Add("LIGHT BAR - " + Inputs.txtLightBarQuoteDesc.Value);

if (Inputs.cmbWorkLights.Value != "") desc.Add("WORK LIGHT - " + Inputs.txtWorkLightsQuoteDesc.Value);

if (Inputs.cmbCompLights.Value != "") desc.Add("COMPARTMENT LIGHTS - " + Inputs.txtCompLightsQuoteDesc.Value);              

if (Inputs.cmbSideRails.Value != "") desc.Add("SIDE RAILS - " + Inputs.txtSideRailsQuoteDesc.Value);       

if (Inputs.cmbSides.Value != "") desc.Add("STAKE SIDES - " + Inputs.txtSidesQuoteDesc.Value);

if (Inputs.cmbFoldDownSide.Value != "") desc.Add("FOLD DOWN SIDES - " + Inputs.txtFoldDownSidesQuoteDesc.Value);          

if (Inputs.cmbSolidSide.Value != "") desc.Add("TIRES - " + Inputs.txtSolidSidesQuoteDesc.Value);

if ((Inputs.cmbCornerStrobe.Value != "")  || (Inputs.cmbWorkLights.Value != "")  ||  (Inputs.cmbLightBar.Value != "") || (Inputs.cmbCompLights.Value != ""))desc.Add();

if (Inputs.cmbHeadRack.Value != "") desc.Add("HEAD RACK - " + Inputs.txtHeadRackQuoteDesc.Value);

if (Inputs.cmbRH.Value != "") desc.Add("REAR HITCH - " + Inputs.txtRHQuoteDesc.Value);

if (Inputs.cmbVise.Value != "") desc.Add("VISE - " + Inputs.txtViseQuoteDesc.Value);

if (Inputs.cmbCodeLock.Value != "") desc.Add("TELESCOPIC ROOF- " + Inputs.txtCodeLockQuoteDesc.Value);

if (Inputs.cmbSpray.Value != "") desc.Add ("SPRAY LINER - " + Inputs.txtSprayQuoteDesc.Value);

if ((Inputs.cmbHeadRack.Value != "") || (Inputs.cmbRH.Value != "") || (Inputs.cmbVise.Value != "")  ||  (Inputs.cmbCodeLock.Value != "") || (Inputs.cmbSpray.Value != "")) desc.Add();

if (Inputs.cmbSideRails.Value != "") desc.Add ("ETRAC - " + Inputs.txtSideRailsQuoteDesc.Value);

if (Inputs.cmbSides.Value != "") desc.Add("GRAB HANDLES - " + Inputs.txtSidesQuoteDesc.Value);

if (Inputs.cmbFoldDownSide.Value != "") desc.Add ("CARGO TIE DOWNS - " + Inputs.txtFoldDownSidesQuoteDesc.Value);

if (Inputs.cmbS1V.Value != "") desc.Add ("DRAWER UNIT - " + Inputs.txtS1VQuoteDesc.Value);

if (Inputs.cmbC1V.Value != "") desc.Add ("PULL OUT DRAWER - " + Inputs.txtC1VQuoteDesc.Value);

if (Inputs.cmbCR.Value != "") desc.Add ("MUD GUARDS - " + Inputs.txtCRQuoteDesc.Value);

if (Inputs.cmbSR.Value != "") desc.Add ("FLOOR MATS - " + Inputs.txtSRQuoteDesc.Value);

if (Inputs.cmbSpareTire.Value != "") desc.Add("TAILGATE MAT - " + Inputs.txtSpareTireQuoteDesc.Value);

if (Inputs.cmbPadlock.Value != "") desc.Add("BED MAT - " + Inputs.txtPadlocksQuoteDesc.Value);

if (Inputs.cmbGrillGuard.Value != "") desc.Add("DOOR DECALS - " + Inputs.txtGrillGuardQuoteDesc.Value);

if (Inputs.cmbC2V.Value != "") desc.Add("UNIT NUMBERS - " + Inputs.txtC2VQuoteDesc.Value);

if (Inputs.cmbCompressor.Value != "") desc.Add("ROOF DECAL- " + Inputs.txtCompressorQuoteDesc.Value);

if (Inputs.cmbS2V.Value != "") desc.Add("REFLECTIVE TAPE- " + Inputs.txtS2VQuoteDesc.Value);

if (Inputs.cmbBeaconLight.Value != "") desc.Add("DOT DECAL- " + Inputs.txtBeaconLightQuoteDesc.Value);

if (Inputs.cmbBumpers.Value != "") desc.Add("FUEL - " + Inputs.txtBumpersQuoteDesc.Value);

if (Inputs.cmbSH.Value != "") desc.Add("GPS - " + Inputs.txtSHQuoteDesc.Value);

if (Inputs.cmbSolidSide.Value != "") desc.Add("TIRES - " + Inputs.txtSolidSidesQuoteDesc.Value);

if ((Inputs.cmbSideRails.Value != "") || (Inputs.cmbSides.Value != "") ||  (Inputs.cmbFoldDownSide.Value != "") || (Inputs.cmbSR.Value != "") || (Inputs.cmbS1V.Value != "") || (Inputs.cmbC1V.Value != "") || (Inputs.cmbSpareTire.Value != "") || (Inputs.cmbSH.Value != "") || (Inputs.cmbSolidSide.Value != "") || (Inputs.cmbBumpers.Value != "") || (Inputs.cmbBeaconLight.Value != "") || (Inputs.cmbS2V.Value != "") || (Inputs.cmbCompressor.Value != "") || (Inputs.cmbC2V.Value != "") || (Inputs.cmbGrillGuard.Value != "") || (Inputs.cmbPadlock.Value != "") || (Inputs.cmbCR.Value != "")) desc.Add();

if (Inputs.chkWT.Value != false) desc.Add ("WINDOW TINTING REQUIRED");

if (Inputs.chkPDI.Value || Inputs.chkPDISTate.Value  || Inputs.chkPDIDOT.Value  || Inputs.chkDOTOnly.Value  || Inputs.chkTexInspecOnly.Value)

	{

		if (Inputs.chkPDI.Value)

			{

				desc.Add ("PDI ONLY INCLUDED");

			}

		if (Inputs.chkPDISTate.Value)

			{

				desc.Add ("PDI and STATE INSPECTION INCLUDED");

			}

		if (Inputs.chkDOTOnly.Value)

			{

				desc.Add ("DOT INSPECTION ONLY INCLUDED");

			}

		if (Inputs.chkPDIDOT.Value)

			{

				desc.Add ("PDI and DOT INSPECTION INCLUDED");

			}

		if (Inputs.chkTexInspecOnly.Value)

			{

				desc.Add ("TEXAS INSPECTION ONLY INCLUDED");

			}

	}





Inputs.edtPartDescription.Value = string.Join( "\n", desc.ToArray() );