Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exicuting setup code supplied by a memo field
Message
From
06/10/1997 12:26:59
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
 
 
To
03/10/1997 16:45:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00053165
Message ID:
00053411
Views:
25
>I am trying to use a combo box to set up my report selections. This box gets its information from a Reports table ( prety name, file name, setup code, index order etc.). I need to be able to run the code stored in the setup code memo field from the valid clause of the combo box. Any suggestions.
>
>Thanks in advance
>
>Terry Hobart

You can extract the code line by line from the memo field (ie . store it with some sort of record delimeter eg CHR(13)) and place each "command" in an array or you extract the commands using the FOXTOOLS WORDS and WORDNUM functions.

eg >

RecordDelimter=chr(13)
CommandStr=
nWords=WORDS(m.CommandStr,m.RecordDelimter)
for i=1 to nWords
cCommand=WORDNUM(m.CommandStr,m.i,m.RecordDelimter)
&cCommand && you have to leave out the usual "m." preface
endfor

You can use this technique to emulate the FOXPRO Command window as well.
Previous
Reply
Map
View

Click here to load this message in the networking platform