using kix4.0

code:


;using Les's example to read in the data.
break on
$key = "10.198.1.1"
$dev = ReadProfileString("C:\KIX\GW.ini", "Gateway", "$Key")

;$dev now is equal to "homesrv1|datasrv1|alias1"
;split the data in $dev into its separate parts,
;using "|" as a separator

$dev = split($dev,"|")

;check to make sure that the split command was ok,
;and the correct number of parts are there
if UBOUND($dev) = 2
$homesrv = $dev[0]
$datasrv = $dev[1]
$Alias = $dev[2]
endif