実録:独習OpenOfficeでマクロ
進捗に問題が
こんばんは、narumi++です。

C言語の学習ですが、いまいち進捗に問題が生じています。
渇を入れないといけないのですけど・・・自分しかいないので・・・。

さて、開発環境なんですけど・・・VC++で行っていますが、教科書がC言語用なので、その辺でつまずきがあるのかも・・・。

モバイルギアに作成したC試食版の環境をViualBoxに構築しようと画策したのですが・・・挫折しました。

ので、UbuntuのGCC環境でコンパイルすることとしようかと・・・。

これでは環境問題ばかりですね。


とりあえず、教科書を元にデータを読み込むコードを書いてみました。

コンパイルしてみていません。

以下の通りです。




int readdata()
{

dim cols as integer
dim rows as intger
dim bkcolor as string
dim linecolor as string
dim linestyle as string
dim title as string
dim name as string
dim price as intger
dim spec(10)as string
dim coment as string
dim paystyle(10) as integer
dim sendstyle(10) as integer
dim sendfee(100) as integer
dim sendsize(10) as integer
dim sendarea(10) as integer
dim i as integer

i=1

with thisworkbook.sheets(1)
do while .cells(i,"A")<> ""

cols =.cells(i,"A")
rows =.cells(i,"A")
bkcolor =.cells(i,"A")
linecolor =.cells(i,"A")
linestyle =.cells(i,"A")
title =.cells(i,"A")
name =.cells(i,"A")
price =.cells(i,"A")
spec(10) =.cells(i,"A")
coment =.cells(i,"A")
paystyle(10)=.cells(i,"A")
sendstyle(10) =.cells(i,"A")
sendfee(100).cells(i,"A")
sendsize(10) =.cells(i,"A")
sendarea(10) =.cells(i,"A")



i=i+1
loop




}


って、これ、VBAのコードじゃねぇか!!
とおしかりの言葉をいただきそうですが、現状はこのようになっておりまする。

では。
投稿者:admindate:2013/02/11(月)08:00
このメルマガを読む!
広告メールはありません

  • [エクセルマクロ制作代行]
  • 鳴海昇平の航海日誌
  • 元へなちょこプログラマのPC日記 激辛注意!!
  • 簡単レシピ
  • 実録:独習OpenOfficeでマクロ
  • 映画レビュー
  • エクセルマクロなブログ
  • ゴングショー
  • [WordPress自動投稿]
  • メルマガ購読・解除
     

    THE BEST OF 【なるしょー】の航海日誌

    Back log16

    [blog_auto_post for WordPress]

    [S-Blog] Ver.1.0 modify Copyright© 2010 narumi All Rights Reserved