Search Your Dot Net Topic

Thursday, 24 February 2022

nodejs vs npm | what is difference between nodejs vs npm | what is nodejs | what is npm| nodejs npm

 

NODE.JS vs NPM




NodeJs vs NPM
NodeJs vs NPM


Node.JS

  • Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications.
  • NPM included with Node.JS installation.
  • Check version by command :    node --version
  • Node.JS is requried on following Javascript framework like : Angular, React.



NPM

Wednesday, 12 January 2022

Visual-Foxpro-VFP-Check-Internet-Connection

Dear Reader,

In this blog you will get source code for check internet connection in visual foxpro.


https://docs.microsoft.com/en-us/windows/win32/wininet/about-wininet


https://docs.microsoft.com/en-us/windows/win32/api/wininet/nf-wininet-internetcheckconnectiona#syntax



Testing2.prg -- This method is more reliable for check internet connection in VFP - Visual foxpro

DECLARE INTEGER InternetCheckConnection in wininet;

    STRING lpszUrl,;

    INTEGER dwFlags,;

    INTEGER dwReserved


IF InternetCheckConnection("http://www.google.com/", 1, 0) = 1


   WAIT WINDOW 'There is an internet connection' 

ELSE

   WAIT WINDOW 'There is no internet connection' 

ENDIF


abc= InternetCheckConnection("http://www.google2222.com/",11,0)

WAIT WINDOW abc




Testing.prg -- Less Reliable code

DECLARE INTEGER InternetAttemptConnect IN wininet;

    INTEGER dwReserved


IF InternetAttemptConnect(0) = 0  

   WAIT WINDOW 'There is an internet connection' NOWAIT

ELSE

   WAIT WINDOW 'There is no internet connection' NOWAIT

ENDIF