Re: µëÍ¿Âç¿Ã£Î£Å¤ÎODDS¤È¤ÎÏ¢·ÈÊýË¡
ndn
Åê¹Æ¿ô: 23
¾ÜºÙÆâÍÆ¡§
ODDSŽÏŽÆŽŽ±ŽÙ¤Î¡ÖŽ²ŽÝŽ½ŽÄŽ°ŽÙ¤ÈÁ°½àÈ÷(VBŽÍŽÞŽ°Ž½)¡×¤ò¸µ¤ËÏ¢·È¤ò¹Ô¤Ã¤Æ¤ª¤ê
VB¤Ç¤Îµ½Ò¤ò¢Í¤ËÆɤßÂؤ¨¤ÆÀßÄꤷ¤Æ¤ß¤Þ¤·¤¿¡£
¡Dim svr As Object
¡¡Set svr = CreateObject(¡ÈKyODDS.Application¡É)
¢ÍOLE¹àÌܤΎ²ŽÝŽ½ŽÀŽÝŽ½²½¡§A=¼«Æ°¤ËÀßÄꤷ¤Æ¤¤¤ë¤Î¤ÇÉÔÍ×(¤È¤Îǧ¼±)
¢Dim strDataPath As String
¡¡IStatus = svr.SelectData(strDataPath)
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§KyODDS1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§AppliCation
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=SelectData¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤ËÊÑ¿ô¡§¥Ç¡¼¥¿¥Ñ¥¹Ì¾
£svr.SetCurrentData <¥Ç¡¼¥¿¥Ñ¥¹Ì¾>
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§KyODDS1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§AppliCation
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=SetCurrentData¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤ËÊÑ¿ô¡§¥Ç¡¼¥¿¥Ñ¥¹Ì¾¡Ê¢¤ÈƱ¤¸¤â¤Î¡Ë
¤Dim Shozoku As String
¡¡svr.Shain.GetByCode ¡È0001¡É
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§Kyshain1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§shain
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=GetByCode ¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤Ë'0001'
¥Shozoku = svr.Shain.strShozoku3
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§Kyshain1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§shain
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÌŽßŽÛŽÊŽßŽÃŽ¨¤Î¼èÆÀ=strShozoku3 ¤òÀßÄê
¡¡Á£¤ÏÆ°¤¤¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¤¡¦¥¤¬¤¦¤Þ¤¯¹Ô¤Ã¤Æ¤ª¤é¤º
¥Ç¡¼¥¿¤¬Ê֤äƤ³¤Ê¤¤¾õ¶·¤Ç¤¹¡£
¤Á¤Ê¤ß¤Ë¡¡Á£¤È¤¡¦¥¤ÎOLE¤ÏÊ̤ÇÊÑ¿ôÄêµÁ¤·¤Æ¤¤¤Þ¤¹¡£
¡Ê1OLE¡á1ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¤ÎÀßÄꤷ¤«½ÐÍè¤Ê¤¤°Ù¡Ë
µ½Ò¤Î¸í¤ê¤Î²ÄǽÀ¤â¤¢¤ë¤Î¤Ç¡¢·Ð¸³¤Î¤¢¤ëÊý¤¬µï¤é¤ì¤ì¤Ð
¸æ¶µ¼ø¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£
ODDSŽÏŽÆŽŽ±ŽÙ¤Î¡ÖŽ²ŽÝŽ½ŽÄŽ°ŽÙ¤ÈÁ°½àÈ÷(VBŽÍŽÞŽ°Ž½)¡×¤ò¸µ¤ËÏ¢·È¤ò¹Ô¤Ã¤Æ¤ª¤ê
VB¤Ç¤Îµ½Ò¤ò¢Í¤ËÆɤßÂؤ¨¤ÆÀßÄꤷ¤Æ¤ß¤Þ¤·¤¿¡£
¡Dim svr As Object
¡¡Set svr = CreateObject(¡ÈKyODDS.Application¡É)
¢ÍOLE¹àÌܤΎ²ŽÝŽ½ŽÀŽÝŽ½²½¡§A=¼«Æ°¤ËÀßÄꤷ¤Æ¤¤¤ë¤Î¤ÇÉÔÍ×(¤È¤Îǧ¼±)
¢Dim strDataPath As String
¡¡IStatus = svr.SelectData(strDataPath)
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§KyODDS1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§AppliCation
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=SelectData¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤ËÊÑ¿ô¡§¥Ç¡¼¥¿¥Ñ¥¹Ì¾
£svr.SetCurrentData <¥Ç¡¼¥¿¥Ñ¥¹Ì¾>
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§KyODDS1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§AppliCation
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=SetCurrentData¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤ËÊÑ¿ô¡§¥Ç¡¼¥¿¥Ñ¥¹Ì¾¡Ê¢¤ÈƱ¤¸¤â¤Î¡Ë
¤Dim Shozoku As String
¡¡svr.Shain.GetByCode ¡È0001¡É
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§Kyshain1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§shain
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÒŽ¿Ž¯ŽÄŽÞ¸Æ½Ð=GetByCode ¤òÀßÄê
¡¡¡¡ŽÊŽßŽ×ŽÒŽ°ŽÀ¤Ë'0001'
¥Shozoku = svr.Shain.strShozoku3
¢ÍOLE¹àÌܤΎÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¡§Kyshain1.0ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ
¡¡¡¡¡¡¡¡¡¡ ŽµŽÌŽÞŽ¼ŽÞŽªŽ¸ŽÄ̾¡§shain
¡¡¡¡³°ÉôŽºŽ°ŽÙCOM¤Ë¤ÆŽÌŽßŽÛŽÊŽßŽÃŽ¨¤Î¼èÆÀ=strShozoku3 ¤òÀßÄê
¡¡Á£¤ÏÆ°¤¤¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¤¡¦¥¤¬¤¦¤Þ¤¯¹Ô¤Ã¤Æ¤ª¤é¤º
¥Ç¡¼¥¿¤¬Ê֤äƤ³¤Ê¤¤¾õ¶·¤Ç¤¹¡£
¤Á¤Ê¤ß¤Ë¡¡Á£¤È¤¡¦¥¤ÎOLE¤ÏÊ̤ÇÊÑ¿ôÄêµÁ¤·¤Æ¤¤¤Þ¤¹¡£
¡Ê1OLE¡á1ŽÀŽ²ŽÌŽßŽ×Ž²ŽÌŽÞŽ×ŽØ¤ÎÀßÄꤷ¤«½ÐÍè¤Ê¤¤°Ù¡Ë
µ½Ò¤Î¸í¤ê¤Î²ÄǽÀ¤â¤¢¤ë¤Î¤Ç¡¢·Ð¸³¤Î¤¢¤ëÊý¤¬µï¤é¤ì¤ì¤Ð
¸æ¶µ¼ø¤ò¤ª´ê¤¤¤·¤Þ¤¹¡£
Åêɼ¿ô:0
Ê¿¶ÑÅÀ:0.00
Åê¹Æ¥Ä¥ê¡¼
-
µëÍ¿Âç¿Ã£Î£Å¤ÎODDS¤È¤ÎÏ¢·ÈÊýË¡
(ndn, 2009-10-22 11:52)
- Re: µëÍ¿Âç¿Ã£Î£Å¤ÎODDS¤È¤ÎÏ¢·ÈÊýË¡ (ndn, 2009-10-22 13:56)
- Re: µëÍ¿Âç¿Ã£Î£Å¤ÎODDS¤È¤ÎÏ¢·ÈÊýË¡ (shhashin, 2009-10-26 13:35)