Hi
Where is the best place to keep all the functions routine in system like below:
If I want to avail this routine on a form what I have understood is I will call IpInternet() from a command button and keep (FUNCTION IpInternet() in a prg. Isn't it? Or I have to dedicate a prg to store all these functions routine.
Please guide..
Thanks
Saif
Where is the best place to keep all the functions routine in system like below:
Code:
? IpInternet()
FUNCTION IpInternet()
LOCAL My AS My
My = NEWOBJECT("My","My.vcx")
ERASE "IP.txt"
IF 0 = My.Computer.Network.DownloadFile("[URL unfurl="true"]http://www.whatismyip.org",[/URL] "IP.txt")
RETURN FILETOSTR("IP.txt")
ELSE
RETURN ""
ENDIF
ENDPROC
If I want to avail this routine on a form what I have understood is I will call IpInternet() from a command button and keep (FUNCTION IpInternet() in a prg. Isn't it? Or I have to dedicate a prg to store all these functions routine.
Please guide..
Thanks
Saif