Hi Mike,
Not directly, but using this code here you can split the TAB delimited
string in to an array and then you are there: You've got a list of all
running applications in an array that can be populated in fre instance a
control in a dialog.
'***************************************************
'Splitting string at Tabulator
'***************************************************
Function StrSplitTabulator ( szOrigString As String, arrSubString(0) As
String) As SmallInt
Dim snStartCh, snStopCh, snSub As SmallInt,
szChar As String
szChar = Chr$(9) 'TABULATOR
snStopCh = 0
snSub = 0
Do While snStopCh <= Len(szOrigString)
snStartCh = snStopCh + 1
snStopCh = InStr(snStartCh, szOrigString, szChar)
If snStopCh = 0 Then
snStopCh = Len(szOrigString) + 1
End If
snSub = snSub + 1
ReDim arrSubString(snSub)
If snStartCh = snStopCh Then
arrSubString(snSub) = ""
Else
arrSubString(snSub) = LTrim$(RTrim$(Mid$(szOrigString,
snStartCh, snStopCh - snStartCh)))
End If
Loop
StrSplitTabulator = snSub
End Function
Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS-Developer
Kampsax A/S, GIS Software & Solutions, Rugaardsvej 55, DK-5000 Odense,
Denmark
tlf: + 45 63 13 50 13, dir: + 45 63 13 50 08, fax: + 45 63 13 50 90
mail: [EMAIL PROTECTED], http://www.mapinfo.dk, http://www.kampsax.dk
------------------------------------------------------------------------------------------------
Mike Katz wrote:
I quick questions about your code. The DDE request returns a tab delimited
string. Is there a way to return a semi colon delimited list so that a list
boxt can be populated.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.