METHOD LoadShares ()
LOCAL cAll := (::cAlias)->Shares // load string from memo
LOCAL cShare := "", aShare := {}, aSh := {}
LOCAL nCount := 0 //NumAt (";", cAllIP), i
DO WHILE .T.
cShare := Token( cAll, "|", ++nCount )
IF Empty( cShare )
// AAdd (aShare, {"","Keine Eintrõge"} )
EXIT
ENDIF
aSh := {Token (cShare,";",1),Token (cShare,";",2)}
AAdd (aShare, aSh )
//? aShare[1,1], aShare[1,2]
ENDDO
IF Len (aShare) = 0; AAdd (aShare, {"","Keine Einträge"} );ENDIF
RETURN (aShare)
METHOD SaveShares (aSh)
LOCAL i
LOCAL cSh := ""
FOR i := 1 TO Len (aSh)
cSh += aSh[i,1]+";"+aSh[i,2]+"|"
NEXT
cSh := Left (cSh, Len(cSh)-1)
(::cAlias)->Shares := cSh
RETURN (cSh)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: nageswaragunupudi and 55 guests