记录集和函数从vb6到vb.net(RecordSet and Function from vb6 to vb.net)
我很想知道如何将这行代码转换为vb.net。 我将数据集更改为记录集,它确实是一个函数。 当我转换它给了我这个错误。 数据集中填充了数据库中的值,只是这个“!” 主要错误是谁可以告诉我在vb6中意味着什么? 出现的错误是“数据集无法索引,因为没有默认属性”
'getting values from database procedure If priRecordSet!CodeStatus Then IfCodeStatus = True Else IFCodeStatus = False End If Return IfCodeStatus
I was wonder how to convert this line of code to vb.net. I changed the dataset to recordset and it is indeed a function. When i convert It gave me this error. The dataset is filled with values from Database Its just that this "!" is the main error can anyone tell me what that means in vb6? The error that came out was"Dataset Cannot Be index because there is no default Properties"
'getting values from database procedure If priRecordSet!CodeStatus Then IfCodeStatus = True Else IFCodeStatus = False End If Return IfCodeStatus
原文:https://stackoverflow.com/questions/17397553
更新时间:2024-03-11 15:03
最满意答案
var timerId = setInterval(myInterval, 5000); function myInterval() { var name = "name"; jQuery.ajax({ url: "/ajax-includes/index.php", type: 'POST', dataType: 'html', data: {name:name}, beforeSend: function () { jQuery('#progress').html('processing...'); }, success: function(data, textStatus, xhr) { jQuery('#bodyMain').html(data) }, error: function(jqXHR, exception) { if (jqXHR.status === 0) { alert('Not connect.\n Verify Network.'); } else if (jqXHR.status == 404) { alert('Requested page not found. [404]'); } else if (jqXHR.status == 500) { alert('Internal Server Error [500].'); } else if (exception === 'parsererror') { alert('Requested JSON parse failed.'); } else if (exception === 'timeout') { alert('Time out error.'); } else if (exception === 'abort') { alert('Ajax request aborted.'); } else { alert('Uncaught Error.\n' + jqXHR.responseText); } } } jQuery(document).on('mouseover','div.video',function(e){ e.stopPropagation(); var videoID = jQuery(this).attr("vid"); jQuery(this).css('background-color','red'); jQuery(this).find("iframe").css('width','0px').css('height','0px'); jQuery(this).find(".liveButton a").css('display','block'); clearInterval(timerID); }).mouseout(function(){ jQuery('div.video').css('background-color','white').css('color','white'); jQuery(this).find("iframe").css('width','200px').css('height','200px'); jQuery(this).find(".liveButton a").css('display','none'); clearInterval(timerId); timerId = setInterval(myInterval, 5000); });
var timerId = setInterval(myInterval, 5000); function myInterval() { var name = "name"; jQuery.ajax({ url: "/ajax-includes/index.php", type: 'POST', dataType: 'html', data: {name:name}, beforeSend: function () { jQuery('#progress').html('processing...'); }, success: function(data, textStatus, xhr) { jQuery('#bodyMain').html(data) }, error: function(jqXHR, exception) { if (jqXHR.status === 0) { alert('Not connect.\n Verify Network.'); } else if (jqXHR.status == 404) { alert('Requested page not found. [404]'); } else if (jqXHR.status == 500) { alert('Internal Server Error [500].'); } else if (exception === 'parsererror') { alert('Requested JSON parse failed.'); } else if (exception === 'timeout') { alert('Time out error.'); } else if (exception === 'abort') { alert('Ajax request aborted.'); } else { alert('Uncaught Error.\n' + jqXHR.responseText); } } } jQuery(document).on('mouseover','div.video',function(e){ e.stopPropagation(); var videoID = jQuery(this).attr("vid"); jQuery(this).css('background-color','red'); jQuery(this).find("iframe").css('width','0px').css('height','0px'); jQuery(this).find(".liveButton a").css('display','block'); clearInterval(timerID); }).mouseout(function(){ jQuery('div.video').css('background-color','white').css('color','white'); jQuery(this).find("iframe").css('width','200px').css('height','200px'); jQuery(this).find(".liveButton a").css('display','none'); clearInterval(timerId); timerId = setInterval(myInterval, 5000); });
相关问答
更多-
我认为你需要在功能范围外拉取设置的时间间隔ID。 var refreshIntervalId; $('#leave').click(function () { refreshIntervalId = setInterval( update, 10000 ); }) $('#stay').click(function () { clearInterval(refreshIntervalId); }) }); 也许一些验证检查refresh ...
-
如果通过“重新启动”,则表示此时要启动新的4秒间隔,则必须停止并重新启动定时器。 function myFn() {console.log('idle');} var myTimer = setInterval(myFn, 4000); // Then, later at some future time, // to restart a new 4 second interval starting at this exact moment in time clearInterval(myTimer) ...
-
var timerId = setInterval(myInterval, 5000); function myInterval() { var name = "name"; jQuery.ajax({ url: "/ajax-includes/index.php", type: 'POST', dataType: 'html', ...
-
(this)的setInterval(setInterval with (this))[2023-07-05]
在构造中使用this旨在保持这个含义的意义, setInterval被调用以在给定时间间隔执行的实际回调。 如果没有手动保存, this将成为setInterval被调用点处函数的所有者。 这是一篇关于这个主题的非常好的文章 http://www.quirksmode.org/js/this.html 另一种可以做得更清楚的方式是以下几点 var self = this this.handle = setInterval(function() { alert(self.Name); }, 5000); T ... -
我已经采用了我之前的答案,为图像滑块添加了一些按钮,可以让您跳转到特定的幻灯片并从那里继续幻灯片放映。 也许它有一些代码可以在解决方案中重用。 const delayBetweenPictures = 2000, numberOfPictures = 4, initialPicture = 1, image = document.getElementById('slideshow'), slideControl = document.getElementById('slide- ...
-
Jody,我看到你的代码至少有一个问题:每次调用你的函数时都会添加一个新的悬停处理程序。 你看,你调用了滑块功能,并附加了一个悬停处理程序。 然后将鼠标移到元素上并将其移出,然后再次调用slider func并附加新的悬停处理程序。 现在有2个处理程序。 因此,当你下次再次这样做时,将会调用2个hanlders并且这个代码也将被调用两次: sliderInt = setInterval(nextSlide, 2000); 我的建议是将初始化代码移到单独的命令中,并添加对'start'调用的检查。 喜欢这个 ...
-
一个快速的解决方案是将现有的 .ready()函数放入变量中,以便在运行结束时重新执行。 像这样: $(document).ready(function() { var run = function () { var showcar; showcar = setInterval(function () { var difference = $(".car").position().left if (difference < 750) { ...
-
如何在选择新日期时停止并重新启动setInterval(How do I stop and restart a setInterval when new date is selected)[2022-09-22]
您可以通过执行clearInterval(id)重置它,如: ... var tickTock; function calcDate(newDater) { // if you have set it before, clear it. if (tickTock) { clearInterval(tickTock); } tickTock = setInterval(function() { .... You can reset it by do ... -
要解决当前问题:在重置按钮的onclick函数中添加clearInterval(window.t) 。 一种能够具有多个定时器的方法。 但这需要一定的结构。 小提琴(6个定时器!): http : //jsfiddle.net/dztGA/27/ (function(){ //Anonymous function, to not leak variables to the global scope var defaultSpeed = 3000; //Used when missing va ...
-
如何在slidetoggle()上停止setInterval()然后重新启动?(how to stop setInterval() on slidetoggle() then restart again?)[2023-12-07]
尝试清除异步加载完成时的间隔: function autoRefresh () { refreshData = setInterval(function() { $('#full_list').load('eventlist.php', function() { clearInterval(refreshData); }); }, 1000); }; ok so i figured it out anyway. thanx for trying if you di ...