Dec 26, 2019 Replies: 1 Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp Attachments csbuilderparser.zip csbuilderparser.zip 16.3 KB · Views: 674 Click to expand...
Hello, This class can parse JSON to generate CSBuilder. Create a json string, save it in a file, add it to assets folder, and display it with this class. All the CSBuilder capabilities are supported. Comments in clsCSBuilderParser.bas and samples files explains the JSON structure. spsp
S spsp Active Member Licensed User Longtime User Dec 27, 2019 #2 Hello, Update v1.1 in the spans text, image and icon, it's possible to use subtitution for dynamic use. Code: Copy LabelDisplay.Text=fcsBuilderParser.parseJSON(File.ReadString(File.DirAssets,Value & ".json") _ ,CreateMap("word1":"CSBuilder","word2":"JSON")) when the parser reads {....} in a text span, it replaces it with the value found in the map (see sample_4) spsp Attachments csbuilderparser.zip csbuilderparser.zip 16 KB · Views: 653
Hello, Update v1.1 in the spans text, image and icon, it's possible to use subtitution for dynamic use. Code: Copy LabelDisplay.Text=fcsBuilderParser.parseJSON(File.ReadString(File.DirAssets,Value & ".json") _ ,CreateMap("word1":"CSBuilder","word2":"JSON")) when the parser reads {....} in a text span, it replaces it with the value found in the map (see sample_4) spsp