Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Append from
Message
From
11/06/2001 08:44:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/06/2001 08:39:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00517666
Message ID:
00517699
Views:
14
>
>
Use myAllMemoTable
>lcStr = filetostr('myText.txt')
>Do while occurs(',',lcStr)>fcount()
>  lcLine = left(lcStr,at(',',lcStr,fcount())-1)
>  Append blank
>  GetMemos(lcLine)
>  lcStr = substr(lcStr,at(',',lcStr,fcount())+1)
>Enddo
>
>
>Function GetMemos
>Lparameters tcStr
>Local lnElemCount, lnArrayElem
>lnElemCount = occurs(",",tcStr)+1
>Local aArray[lnElemCount]
>lnArrayElem = 1
>Do while occurs(",",tcStr)>0
>  aArray[lnArrayElem] = alltrim(substr(tcStr,1, at(",",tcStr)-1))
>  lnArrayElem = lnArrayElem + 1
>  tcStr = substr(tcStr, at(",",tcStr)+1)
>Enddo
>aArray[lnArrayElem] = alltrim(substr(tcStr,1))
>Gather from aArray memo
>
Cetin
Ooops.
Add after enddo :
Append blank
GetMemos(lcStr)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform