التنبيهات التالية ظهرت :
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 864 errorHandler->error



تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
A simple Wait Function
#1
كود :
'**************************************
'Windows API/Global Declarations for :A simple Wait Function
'**************************************
Public Declare Function GetTickCount Lib "kernel32.dll" () As Long


كود :
            '**************************************
' Name: A simple Wait Function
' Description:Ur code waits for X seconds without stopping complete VB like most others (incl. Sleep Api)
' By: PrixM (from psc cd)
'
' Assumes:'Set the API Declaration and the Code into a Module
'to use the function Wait(x) x stands for the amount of seconds to wait
'**************************************

Public Function Wait(ByVal TimeToWait As Long) 'Time in seconds
Dim EndTime As Long
EndTime = GetTickCount + TimeToWait * 1000 '* 1000 Cause u give seconds and GetTickCount uses Milliseconds
Do Until GetTickCount > EndTime
DoEvents
Loop
End Function
الرد }}}
تم الشكر بواسطة: Ahmed_Mansoor , Amir_Alzubidy


الردود في هذا الموضوع
A simple Wait Function - بواسطة viv - 17-08-19, 03:40 PM
RE: A simple Wait Function - بواسطة Ahmed_Mansoor - 18-08-19, 05:43 AM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  a AutoComplete Very Simple! viv 3 1,867 17-09-19, 12:36 AM
آخر رد: ahmed.m

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم