Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the port from a printer
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01276048
Message ID:
01276119
Views:
21
This message has been marked as the solution to the initial question of the thread.
Moises,

Why did you ignore my message Re: Printer port from prompt Thread #1275152 Message #1275356 with the syntax for ASCAN?


>Days ago I was trying to get the port form a printer
>
>Now I succeed in getting it
>
>But I had to create a cursor
>
>I would apreciate if someone here help me to eliminate
>the cursor
>If not I will keep the code as it is
>
>
>
>************************************************************************
>APRINTERS(PTT1,1)
> CREATE CURSOR PTT2 (A1 C(150), A2 C(150), A3 C(150), A4 C(150) )
> APPEND FROM ARRAY PTT1
>PT3 = GETPRINTER ()
>
>SET EXACT ON
> SELECT PTT2
> LOCATE FOR ALLTRIM(A1) = ALLTRIM (PT3)
>
> = MESSAGEBOX (A2) && here is the printer port
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform