Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text to table
Message
From
16/05/2007 09:13:48
 
 
To
16/05/2007 09:05:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01225935
Message ID:
01225940
Views:
14
This message has been marked as the solution to the initial question of the thread.
>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.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform