CustomDataTable
-
- Site Admin
- Posts: 181
- Joined: 11 Jul 2014, 13:55 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
CustomDataTable
CustomDataTable (cDT) represents table of in-memory data.
cDT is direct descendant of
Syntax:
object cDT = new CustomDataTable(<file_name>);
Parameters:
string filename - relative path to XML file containing data.
Search starts from folder "Public Documents\DesignForms_4\CustomLibrary".
Most important properties and methods:
SDF extension methods:
Convert()
Converts data in cDT from string to strongly-typed values (number, string, boolean or structure)
Return value
object (CustomDataTable) with converted values.
Remarks:
CustomDataTable constructor loads data from XML file without any conversions. All the values in cells in table are string (text). This saves time necessary to convert all the values.
You can use this command to convert table immediately after loading:
object cDT = new CustomDataTable(<file_name>).Convert();
Convert method can be time consuming (especially for huge datatables). Use it just in justified case!
GetStructure(DataRow R)
Convert given data row to strongly-typed SDF structure.
This command can be used with converted as well as original (unconverted) CustomDataTable. Necessary conversions are provided for unconverted datarow.
Return value
object (structure) which contains strongly typed data from given DataRow.
Parameters:
R - row to be converted to SDF structure.
- Attachments
-
- CustomDataTable.cls
- (28.4 KiB) Downloaded 316 times
Ing. Petr Slepicka
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
-
- Posts: 30
- Joined: 06 Oct 2014, 13:10 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Re: CustomDataTable
from version 6.0
You can't use this command to convert table immediately after loading:
object cDT = new CustomDataTable(<file_name>).Convert();
Correct procedure is:
object cDT = new CustomDataTable(<file_name>);
cDT = cDT.Convert();
You can't use this command to convert table immediately after loading:
object cDT = new CustomDataTable(<file_name>).Convert();
Correct procedure is:
object cDT = new CustomDataTable(<file_name>);
cDT = cDT.Convert();
Return to “Design forms features”
Who is online
Users browsing this forum: No registered users and 10 guests