CONSULTA SOBRE LISTBOX
Publicado por JOSE (79 intervenciones) el 08/12/2005 20:30:15
Hola amigos del foro tengo esta duda:
iF Bodegas=1
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 ")} }
ElseIf bodegas=2
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock ((cExi_Suc)->Ma_Arti,"2 ")} }
ElseIf Bodegas=3
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 ")} }
ElseIf bodegas=4
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 "),;
BusStock((cExi_Suc)->Ma_Arti,"4 ")} }
ElseIf bodegas=5
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 "),;
BusStock((cExi_Suc)->Ma_Arti,"4 "),BusStock((cExi_Suc)->Ma_Arti,"5 ")} }
Endif
Bueno esto lo hago para mostra si tengo una lo hace si tengo 2 3 4 5 lo hace pero si tengo 20 tendria que repetir 20 veces como se puede hacer una sola variable que sirva para 1 como para n bodegas mostrar eun Listbox
desde ya gracias
Saludos
iF Bodegas=1
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 ")} }
ElseIf bodegas=2
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock ((cExi_Suc)->Ma_Arti,"2 ")} }
ElseIf Bodegas=3
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 ")} }
ElseIf bodegas=4
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 "),;
BusStock((cExi_Suc)->Ma_Arti,"4 ")} }
ElseIf bodegas=5
cCampo :={ || {(cExi_Suc)->Ma_Des1,BusStock((cExi_Suc)->Ma_Arti,"1 "),;
BusStock((cExi_Suc)->Ma_Arti,"2 "),BusStock((cExi_Suc)->Ma_Arti,"3 "),;
BusStock((cExi_Suc)->Ma_Arti,"4 "),BusStock((cExi_Suc)->Ma_Arti,"5 ")} }
Endif
Bueno esto lo hago para mostra si tengo una lo hace si tengo 2 3 4 5 lo hace pero si tengo 20 tendria que repetir 20 veces como se puede hacer una sola variable que sirva para 1 como para n bodegas mostrar eun Listbox
desde ya gracias
Saludos
Valora esta pregunta


0