General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only