The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Japanese Origin Forum
 Origin日本語フォーラム (Japanese Origin Forum)
 ベクトルの要素数

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Ares02 Posted - 02/12/2015 : 01:52:29 AM
初歩的な質問で大変申し訳無いのですが、数ベクトルの要素数を得るには
どのようにすればよろしいのでしょうか?

Worksheet wks;
wks = Project.ActiveLayer();
col1 = wks.Columns(0);
vector &v1 = col1.GetDataObject();

上記コードの後、v1の要素数を得たいのですが、sizeof関数が
使えないのでどのようにそればいいのか悩んでおります。
空白のセルはNULLやNA、NaN扱いなのかと思い、繰り返し文で
要素を数えようとしてみたのですが、上手くいかず、行き詰って
おります。

以上に関して、ご教示願えないでしょうか?
1   L A T E S T    R E P L I E S    (Newest First)
Hideo Fujii Posted - 08/10/2015 : 4:15:47 PM
Ares02様、

GetSizeメソッド(v1.GetSize())ですね。

http://www.originlab.com/doc/OriginC/ref/Vectorbase-GetSize

ちなみにLabTalkでも以下のようにgetSize()です:
range r=col(B);
type $(r.GetSize());
--Hideo Fujii
Originlab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000