Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement