PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Limitation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SNMPStringToOID (Function)
In french: SNMPChaîneVersOID
Converts an OID from its text representation to its numeric representation.
Note: This function cannot be used as long as the MIB file that describes the correspondence between the OIDs in text and numeric format has not been loaded (SNMPLoadMIB).
Example
bMIBLoaded is boolean
sPathMIBs is string = CompleteDir(fExeDir()) + "mibs\"
sMib is string
sMib = "RFC1382-MIB.mib" // MIB of X25 protocol
sOID is string
bMIBLoaded = SNMPLoadMIB(sPathMIBs + sMib)
IF bMIBLoaded = False THEN
Error("MIB error:" + ErrorInfo())
ELSE
sOID = SNMPStringToOID("dod.internet.mgmt.mib-2.transmission.x25.x25AdmnInterruptTimer")
END
Syntax
<Result> = SNMPStringToOID(<OID to Convert>)
<Result>: Character string
  • String containing the value of the OID in numeric format,
  • Empty string ("") if an error occurred.
<OID to Convert>: Character string (with quotes)
String containing the OID in string format to convert.
Remarks

Limitation

The SNMPxxx functions can only be used from Windows 2000 (they cannot be used with the following systems: Windows 98, Me or NT4).
Component : wd240com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment