Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Default Printer
Message
 
À
01/09/2000 15:05:44
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00411791
Message ID:
00411950
Vues:
19
>George,
>How do I tell which of the printers in the array is the default?

Compare the value in the first column with the value that SET('PRINTER', 2) returns like this:
lcdefprnt = SET('PRINTER', 2)
lnlast = APRINTERS(a_prn)
lldefault = .F.
lni = 0
DO WHILE lni < lnlast AND NOT lldefault
  lni = lni + 1
  lldefault = (lcdefprnt == UPPER(a_prn[lni, 1]))
ENDDO
IF lldefault
  ? a_prn[lni, 1], a_prn[lni, 2]
ENDIF
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform