Advertisement
basictomonokai

電子書籍用サンプルプログラム ◆メインプログラム(demo-main.bas)

Jun 3rd, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. REM Start of BASIC! Program
  2. include demo-sub1.bas
  3. include demo-sub2.bas
  4. include demo-sub3.bas
  5.  
  6. dim rsskey$[100]
  7. dim rssname$[100]
  8.  
  9. console.title "RSS feed"
  10.  
  11. rssstp:
  12.  
  13. file.exists flxx,"fd01.txt"
  14.  
  15. if flxx=0 then
  16. else
  17. irs=1
  18. Text.open r, file_numbera, "fd01.txt"
  19. do
  20. Text.readln file_numbera, line$
  21. if line$="EOF" then
  22. else
  23. if line$="" then
  24. else
  25. split abc$[],line$,"@@@"
  26.  
  27. rssname$[irs]=abc$[1]
  28. rsskey$[irs]=abc$[2]
  29. irs=irs+1
  30.  
  31. array.delete abc$[]
  32.  
  33.  
  34. endif
  35. endif
  36. until line$="EOF"
  37. Text.close file_numbera
  38. endif
  39.  
  40. anszz$=""
  41.  
  42. for kk=1 to irs
  43.  
  44. if len(rsskey$[kk]) > 1 then
  45. ansz$=fdget1$(rssname$[kk],rsskey$[kk])
  46. anszz$=anszz$+ansz$
  47. else
  48. endif
  49.  
  50. next kk
  51.  
  52.  
  53. rssstpx:
  54.  
  55. ansy$=rsbox1$("RSSフィードリーダ","RSSフィードリーダ",anszz$)
  56.  
  57. if ansy$="x" then
  58. else
  59. if ansy$="y" then
  60.  
  61. all$=""
  62. file.exists flyy,"fd01.txt"
  63.  
  64. if flyy=0 then
  65. else
  66. Text.open r, file_numberc, "fd01.txt"
  67. do
  68. Text.readln file_numberc, line$
  69. if line$="EOF" then
  70. else
  71. all$=all$+line$+"\n"
  72. endif
  73. until line$="EOF"
  74. Text.close file_numberc
  75. endif
  76. text.input zzz$,all$,"1行でフィード名@@@URLを登録"
  77.  
  78. Text.open w, file_num2, "fd01.txt"
  79. msg$="【登録内容】\n"+zzz$
  80. popup msg$,0,0,1
  81. pause 4000
  82. text.writeln file_num2,zzz$
  83. text.close file_num2
  84.  
  85. else
  86. endif
  87. endif
  88.  
  89. if ansy$="x" then
  90. ansyn$=ynbox1$("処理継続選択画面","RSSフィードリーダ=>処理の選択","引き続き、処理を継続しますか?")
  91. else
  92. if ansy$="y" then
  93. ansyn$=ynbox1$("処理継続選択画面","RSSフィードリーダ=>処理の選択","引き続き、処理を継続しますか?")
  94. else
  95. goto rssstpx
  96. endif
  97. endif
  98.  
  99. if ansyn$="yes" then
  100. goto rssstp
  101. else
  102. popup "RSSフィードリーダを終了します",0,0,1
  103. endif
  104.  
  105. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement