资源描述:
《smartform字段参数设置及系统变量》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、OutputOptionsforFieldContents UsetheFormattingoptionstoadaptthevalueofafieldbeforeprintingit.Youcanentertherelevantparametersdirectlybehindthefieldname.Makesuretowritetheshortformsofthedifferentoptionsinuppercaseletters.Someoftheoptionscanbecombined.GeneralIn
2、formationTheformattingoptionsarenotsuitedforalldatatypesoffields(forexample,forcharacterfieldsyouneednoexponentialrepresentation).Youmustdistinguishbetweennumericfieldsandcharacterfields.NumericFields·Ifspecified,thesystemfirstevaluatesthelength().·If
3、nolengthisspecified,thesystemdisplaysthevalueinitsoveralllength.·Thetrailingblankindicatesapositivesign.Tosuppressit,useformattingoptionS.·Anyoffsetspecifiedisignored.Sequenceofevaluation:(),signtotheleft(<),Japanesedate(L),suppressblanks(C),r
4、ight-justifieddisplay(R),insertfillers(F).CharacterFieldsBydefault,thesystemdisplaysthevalueofafieldinitsoveralllength,buttruncatestrailingblanks.Sequenceofevaluation:suppressblanks(C),and(),right-justifieddisplay(R),insertfillers(F).OverviewF
5、ormattingOptionsforFieldsSyntaxDescription&field+&Skipsplacesofthefieldvalue(characterfieldsonly).Iftheoffsetisgreaterthanthelengthofthevalue,nothingisdisplayed.&field()&Setstheoutputlengthto.&field(*)&IfthefieldisdefinedbyaDat
6、aDictionarytype,SmartFormssettheoutputlengthtothevaluespecifiedthere.&field(S)&Suppressesthesign&field(<)&Displaysthesigntotheleftofthenumber&field(.)&Limitsoutputofdecimalplacesto&field(E)&Displaysthefieldvaluewiththefixed
7、exponent.Themantissaisadaptedtothisexponentbyshiftingthedecimalcharacterandinsertingzeros.&field(T)&SuppressesthousandindicatorswhendisplayingfieldsoftypesDEC,CURR,INT,andQUAN.&field(Z)&Suppressesleadingzerosofnumbers&field(I)&Suppressesdisplayofi
8、nitialvalues&field(K)&DeactivatesaconversionroutinespecifiedintheDataDictionary.&field(R)&Right-justifieddisplay.Usethisoptiononlywhenspecifyinganoutputlengthaswell.&field(F)&Repl