Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Base Table Name of View
Message
 
 
To
07/06/2001 15:16:46
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00516515
Message ID:
00516572
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
>> lnTables=aparser1(@laTables,m.lcTablesList,',')
>
>Error on the above... What does aparser1 do? Renoir
Oops. Ok, here it is:
*!******************************************************************************
function aparser1
*  Description.......: Function parses a text string into an array.
*                    : Each element of the array contains one word...
*  Calling Samples...: dimension laWords[1]
*                    : lcWordString = "Some text string"
*                    : lnWords = aparser1(@laWords, lcWordString)
*  Parameter List....: taWords, tcWordString, tcDelimiter
********************************************************************
lparameter taWords, tcWordString, tcDelimiter
local lnWords, lni
external array taWords
if vartype(m.tcWordString)<>"C"
   return .f. && First and second parameters are required
endif
if vartype(m.tcDelimiter)<>'C'
     tcDelimiter=space(1) && Default delimiter
endif
* Idea of Charlie Schreiner  #011905
*!* Now put each element in an array.
lnWords=alines(taWords, strtran(m.tcWordString, m.tcDelimiter, chr(13)))
return m.lnWords
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform