Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text to table
Message
De
16/05/2007 09:50:10
 
 
À
16/05/2007 09:13:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01225935
Message ID:
01225956
Vues:
12
>>Hi all,
>>I need to sort out the words in a text file and put them into a table.
>>Do you have any solution for it?
>>like this:
>>
>>sample text
>>
>>I need to sort out the words in a text file and put them into a table.
>>Does anybody have a solution or a link for it?
>>
>>
>>table1
>>
>>field1 | field2
>>I      |   1
>>need   |   1
>>to     |   1
>>sort   |   1
>>out    |   1
>>the    |   1
>>words  |   1
>>...
>>
>>
>>
>>Thanks,
>>Tamas
>
>
>nCount=getwordcount(cText)
>FOR nLoop=1 TO nCount
>	INSERT INTO table1 values(GETWORDNUM(cText,nLoop),1)	
>ENDFOR

>
>You may also check additional cDelimiters parameter in GetWordnum and GetWordCount functions.

Thanks, Naomi and Edward!
Edward's solution is what I wanted.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform