---
# System prepended metadata

title: dimension _something_
tags: [Hacktionary 詞彙條目]

---

# dimension _something_

說明 dimension _something_ 詞彙的相關意思與實務中的使用方式

<https://hackmd.io/@hacktionary/term-dimension-something>

## 內容大綱

[TOC]

## <ruby>及物動詞<rp>(</rp><rt>Transitive verb</rt><rp>)</rp></ruby>

### 變更 _某物_ 之大小

#### 例句：於 LibreOffice Basic 變更動態陣列的大小

> Unlike VBA, where you can only **dimension** dynamic arrays by using _ReDim_, LibreOffice Basic lets you change both static and dynamic arrays using _ReDim_.  
> 不像在 VBA 您只能使用 _ReDim_ **變更*動態陣列*之大小**，LibreOffice 讓您可以使用 _ReDim_ 變更靜態跟動態陣列的大小。  
> ——摘錄自 [Dynamic Changes in the Dimensions of Data Fields - LibreOffice BASIC Programming Guide - The Document Foundation Wiki](https://wiki.documentfoundation.org/Documentation/BASIC_Guide#Dynamic_Changes_in_the_Dimensions_of_Data_Fields)

[OpenAI 平台(gpt-4-turbo)參考翻譯與詞彙在情境中的說明](https://platform.openai.com/playground/p/5cTvrp2BKu6BuJzXwsm1ytWw?mode=chat)：

> 在傳統的 VBA 中，你只能使用 _Dim MyArray()_ 來**定義**動態陣列，但在 LibreOffice Basic 中，無論是靜態或動態陣列都可以使用 _ReDim_ 進行修改。
> 
> 在這段文字中，「定義」這個詞是指確定一個動態陣列的維度大小，也就是它可以容納的數據數量，這是在程式運行前尚未確定的。在 VBA 語言中，使用 _Dim_ 關鍵字來初步宣告陣列的存在，之後可能需要改變這個陣列的大小。而「定義」特別強調了這個設定過程，即確立陣列的尺寸與限制。在 LibreOffice Basic 的情況下，_ReDim_ 則提供了更靈活的陣列尺寸調整功能。

Google Gemini(2.0 Pro Experimental) 參考翻譯與詞彙在情境中的說明：

> Here's the translation of the passage into the Taiwan variant of Traditional Chinese, followed by an explanation of the emphasized term:
> 
> **Translation:**
> 
>> 與 VBA 不同，VBA 中您只能透過 _Dim MyArray()_ 來**宣告 (xuāngào)** 動態陣列，而 LibreOffice Basic 允許您使用 _ReDim_ 來變更靜態和動態陣列的大小。
>
> **Elaboration on "Dimension" (in the Source Passage):**
> 
> In the context of programming (specifically in languages like VBA and, to a lesser extent, LibreOffice Basic), "dimensioning" an array means declaring it and, crucially, _specifying its size_. It's the process of reserving memory space for the array. The key aspects are:
> 
> 1. **Declaration:** Telling the program that an array with a specific name will exist.
> 2. **Sizing (most important for "dimension"):** Indicating how many elements the array can hold. This is the _crucial_ part implied by "dimension." In VBA, `Dim MyArray()` without specifying a size creates a _dynamic_ array – one whose size isn't fixed at compile time.
> 3. **(Often Implicit) Data Type:** Specifying the type of data the array will store (e.g., integers, strings, etc.). This is usually, but not always, part of the dimensioning process. In VBA, `Dim MyArray` implicitly creates an array of `Variant` type, which can hold any data.
> 
> The difference highlighted in the original sentence is that VBA _requires_ you to use a separate `ReDim` statement to resize a _dynamic_ array _after_ it's been initially declared (with potentially no size specified). LibreOffice Basic, on the other hand, allows `ReDim` to be used on both arrays that were initially declared with a size (static) and arrays that were initially declared without a size (dynamic).
> 
> In summary, "dimension" in this context is short for "declare and specify the dimensions (size) of an array." The Taiwanese translation uses _xuāngào_ to capture this combined meaning of declaration and initial sizing (or lack thereof, in the case of dynamic arrays).

## 參考資料

以下第三方資料於撰寫本詞彙條目期間被參考到：

* [define dimension - Google 搜尋](https://www.google.com/search?channel=fs&q=define+dimension)  
  說明詞彙的可能含意（採用「form or shape (something) to particular measurements.」釋義）。

---

本文件為[《Hacktionary》專案](https://hackmd.io/@hacktionary/home)的衍生作品，以[《Creative Commons 姓名標示-相同方式分享》授權條款第 4.0 國際版](https://creativecommons.org/licenses/by-sa/4.0/deed.zh_TW)或其任意更近期版本釋出供大眾於授權範圍內自由使用

如參與本平台的內容實作視同為將您的內容以相同授權條款釋出

部份內容為基於合理使用(fair use)原則使用，使用方式請參閱其註明之來源與作者

<style>
    /* 調大旁註文字的字元大小 */
    rt{
        font-size: 10pt;
    }
</style>
