|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-27 05:27 UTC] alan_k@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Description: ------------ ASP code: <% Set RS = Server.CreateObject("visualphd.data") RS.HOSTNAME="APP22" RS.TAGS.ADD "TIC1101.PV" RS.SAMPLEFREQUENCY = 60 RS.SAMPLEMETHOD="SNAPSHOT" RS.STARTTIME="NOW" RS.ENDTIME="NOW" RS.FETCH response.write(rs.tags("TIC1101.PV").VALUE) response.write("<br>") response.write(rs.tags("TIC1101.PV").timestamp) response.write("<br>") response.write(rs.tags("TIC1101.PV").CONFIDENCE) %> Reproduce code: --------------- I had Converted to php code: <? $obj = new COM("VisualPHD.Data"); $obj->HOSTNAME="APP22"; $obj->TAGS->ADD("TIC1101.PV"); $obj->SAMPLEFREQUENCY = 60; $obj->SAMPLEMETHOD="SNAPSHOT"; $obj->STARTTIME="NOW"; $obj->ENDTIME="NOW"; $obj->MoveFirst; $obj->FETCH; print_r($obj->TAGS["TIC1101.PV"]->VALUE); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->timestamp); print_r("<br>"); print_r($obj->TAGS["TIC1101.PV"]->CONFIDENCE); $obj=null; ?> I don't know it is right that from "RS.TAGS.ADD \"TIC1101.PV\"" to "$obj->TAGS->ADD("TIC1101.PV");"? Expected result: ---------------- Expected result is so such: 10.0 2003-10-27 17:40:50 100% Actual result: -------------- Actual result: 0 0 0 I hope you to help me. yunlan@mail.eestart.com.