Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exicuting setup code supplied by a memo field
Message
De
06/10/1997 12:26:59
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
 
 
À
03/10/1997 16:45:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00053165
Message ID:
00053411
Vues:
30
>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
Fil
Voir

Click here to load this message in the networking platform