wesleycrusher
Technical User
I thought this would work but it won't. I want to add the contents of the field to a string declared variable and separate the results with a comma. Please let me know what is wrong with my syntax if this is even possible (no reason it shouldn't be).
I have the IF-THEN statement twice+ because it is possible for there to be more than one trade name associated with a model number. I am not sure how to have it cycle to find all of them so I can add them to the string. This is also something I would appreciate any insight on.
Thanks!
stringVar tradename := {trade_name.trade_name};
If {furnace_model.model_number} In "{trade_name.trade_name}" Then tradename:= +{trade_name.trade_name} +",";
If {furnace_model.model_number} In "{trade_name.trade_name}" Then tradename:= +{trade_name.trade_name} +",";
If Length(tradename) > 0 then Left(tradename, Length(tradename)-1);
I have the IF-THEN statement twice+ because it is possible for there to be more than one trade name associated with a model number. I am not sure how to have it cycle to find all of them so I can add them to the string. This is also something I would appreciate any insight on.
Thanks!
stringVar tradename := {trade_name.trade_name};
If {furnace_model.model_number} In "{trade_name.trade_name}" Then tradename:= +{trade_name.trade_name} +",";
If {furnace_model.model_number} In "{trade_name.trade_name}" Then tradename:= +{trade_name.trade_name} +",";
If Length(tradename) > 0 then Left(tradename, Length(tradename)-1);