Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FAQ 21202 Add/Delete Custom Printer Forms in W2K (Sergey
Message
From
20/05/2004 15:08:13
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00905754
Message ID:
00905768
Views:
12
OK, I lied, I have another question. I added the form but now I need to delete it. The code below is not working. It doesn't return an error so it should be deleted but when I check the forms for the printer the DBMEMO form is still listed:
ooo = NEWOBJECT("AddPrinterForm")
*Delete it since I created it for testing purposes only
IF NOT ooo.DeleteForm("DBMEMO",lcprinter)
   * Error
   lcmessage= ooo.cErrorMessage
   lcmessage=lcmessage+CHR(13)+ooo.cApiErrorMessage 
   =MESSAGEBOX(lcmessage,0+16+4096,'An Error Ocurred.')
ELSE
   *This message displays but the form is actually still there
   =MESSAGEBOX('Deleted the form: DBMEMO',0+64+4096,'SUCCESS')
ENDIF
ooo = NULL
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform