Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Undefined number of parameters
Message
From
18/09/2002 14:37:34
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00701718
Message ID:
00701963
Views:
12
Hi Marc

have you tried to use array as parameter.

This function receive array mat_soli as parameter, other idea is use cursor.

PARAMETERS mat_soli
LOCAL vlcn_longsol as numeric, vlcc_filtro as string , vlcc_in as string , j as numeric

vlcn_longsol = ALEN(mat_soli)

FOR j=1 TO vlcn_longsol
vlcc_cnumsolici = mat_soli(j)
IF j = 1
vlcc_in = "('" + vlcc_cnumsolici +"'"
ELSE
vlcc_in = vlcc_in + ",'" + vlcc_cnumsolici + "'"
ENDIF
ENDFOR

vlcc_filtro = "Where cnumsolici in " + vlcc_in + ")"

RETURN vlcc_filtro
Mario N. Jacas Medina
Previous
Reply
Map
View

Click here to load this message in the networking platform