ข้ามไปเนื้อหา

ผลต่างระหว่างรุ่นของ "CuneiForm"

เพิ่มขึ้น 692 ไบต์ ,  8 เมษายน 2567
บรรทัดที่ 172: บรรทัดที่ 172:
The option to modify object-specific values after initiation is also available. However, since value packing and manipulation occurs during initiation, some details should be noted:
The option to modify object-specific values after initiation is also available. However, since value packing and manipulation occurs during initiation, some details should be noted:
* '''skipseqs''', '''skipcols''', '''firstonly''', and '''autorun''' are normal form attributes and can easily be accessed and modified.
* '''skipseqs''', '''skipcols''', '''firstonly''', and '''autorun''' are normal form attributes and can easily be accessed and modified.
* '''sptypes''' is distributed and packed as field attributes.
* '''sptypes''' is distributed and packed as field attributes. We will follow-up on the example given under [[#Special Value Types]] section. After initiation, special value specification are thus set:
 
<syntaxhighlight lang="python">
taxform_obj.taxdate.special_type = "date"
taxform_obj.taxmonth.special_type = "month"
tax_form_obj.rate.special_type = "pct"
tax_form_obj.amt.special_type = "acc"
tax_form_obj.tax.special_type = "acc"
tax_form_obj.rate_2.special_type = "pct"
tax_form_obj.amt_2.special_type = "acc"
tax_form_obj.tax_2.special_type = "acc"
 
# For file types, values are thus packed:
product_form_obj.pict.special_type = "img"
product_form_obj.pict.file_src_type = "table"
product_form_obj.pict.file_src_dir = "product"
</syntaxhighlight>


==== Know Your Place ====
==== Know Your Place ====