Q&A - Question Changing GIS attribute field names (C++ Builder) Question Bahodir asked on December 16, 2019, keyword: Developer Kernel I can get field name by this method: TGIS_Shape *shp; TGIS_LayerVector *ll; ll = ( TGIS_LayerVector *)( GIS->Items->Items[0] ); // getting first layer Label1->Caption = ll->FieldInfo( 2 )->Name; // getting field name shp = shp->MakeEditable() ; shp = (TGIS_Shape *)( GIS->Locate( ptg, 5 / GIS->Zoom, TRUE ) ) ; GIS_Attributes->ShowShape( shp ); This way I can see all field data on Attributes component. How can I change field name on TGIS_ControlAttributes? (I need this to translate field names into my language) Answers Tomasz Kosinski (TatukGIS) replied December 14, 2019 Take a look at: TGIS_FieldRule.LongName and FieldRules sample. Tomasz Kosinski (TatukGIS) replied December 15, 2019 Answer deleted - wrong thread. Bahodir replied December 16, 2019 TGIS_FieldRule *r ; TGIS_FieldInfo *fld ; TGIS_LayerVector *ll; ll = ( TGIS_LayerVector *)( GIS->Items->Items[0] ); fld = ll->FieldInfo(1) ; r = new TGIS_FieldRule ; r->LongName="customfieldname"; fld->Rules=r; //////////////// Getting error "LongName" is not accessible. How can I use my custom field name for the existing ones? Can you show some examples with LongName please? Tomasz Kosinski (TatukGIS) replied December 16, 2019 Suppose that you o[en pour sample world.shp file. Create a file called world.shp.fldx <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <TatukGIS> <Fields> <Field> <Name>POPYCOUN</Name> <Caption>This is my caption</Caption> </Field> </Fields> </TatukGIS> This is the easiest way right now to provide custom captions. If you have further questions I suggest to contact support@ directly. If you would like to answer the question please Sign In. * * Stay signed in on this computer Please review our recent Privacy Policy.If you have any questions or requests, please contact us. Forgotten password Rules The Questions and Answers (Q & A) is intended to provide a means of communication between TatukGIS customers. Licensed users (with active maintenance play) of TatukGIS products may contribute to the Q & A content. Read-only access is available to anyone. Keep the content positive and professional. Be courteous to others by posting information when a question or issue asked on the Q & A is answered or resolved by other means (such as with help from TatukGIS technical support). Offer others at least a hint how the posted question was answered or the issue was resolved. The Q & A is not a replacement for TatukGIS technical support. TatukGIS team may or may not regularly follow or contribute content.