Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On selection bar
Message
De
22/02/2005 10:26:21
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
On selection bar
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00989239
Message ID:
00989239
Vues:
54
hi all,

I want to achieve the following.
For m.ix = 1 to ..
 define bar m.ix of (alltrim(table1.f1)) prompt (alltrim(table2.f1))
 on selection bar m.ix of (alltrim(table1.f1)) (alltrim(table2.command1))
endfor
The line "on selection bar m.ix of (alltrim(table1.f1)) (alltrim(table2.command1))" fails.
If i remove the "(alltrim(table2.command1))" it works but it will be of no use to me.
(alltrim(table2.command1)) contains valid foxpro command like do abc.prg

but this works
on selection bar m.ix of (alltrim(table1.f1)) do abc.prg

error returned unrecognised command verb .
I tried macro substitution like
m.macro1 = "on selection bar"+alltrim(str(m.ix))+" of "+alltrim(table1.f1)+alltrim(table2.command1)
&macro1
and it worked

Can someone highlight why didnt this work ??

on selection bar m.ix of (alltrim(table1.f1)) (alltrim(table2.command1))

suhashegde
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform