Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from
Message
De
11/06/2001 08:44:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/06/2001 08:39:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00517666
Message ID:
00517699
Vues:
15
>
>
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform