Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kamweng
  • Content: Threads
  • Order by date
  1. kamweng

    Auto select all text in a RTF Textbox without using Ctrl+A?

    In a normal textbox I could use the format property "K" to auto select all the text when it got focus but this property is not availabe in a RTF textbox. Maybe I missed knowing about another property that is similar to the format property. Anyway, is there a way to get all the text in a RTF...
  2. kamweng

    Keypress event in RTF Textbox

    My keypress worked fine in a textbox but I could not make it work in a RTF textbox: *** ActiveX Control Event *** LPARAMETERS keyascii IF keyascii = -8 && F9 MESSAGEBOX(0,0,0) && For example ENDIF RETURN Is there anything else that I should be aware of? Thank you.
  3. kamweng

    Problem after closing report form

    OREPFORM = CREATEOBJECT("Form") WITH OREPFORM .WINDOWSTATE = 2 .SHOW() ENDWITH REPORT FORM XXX PREVIEW WINDOW (OREPFORM.NAME) OREPFORM.RELEASE() After issuing the above code, I noticed all my existing variables reverted to the default values (as shown in the debug). Is it true the...
  4. kamweng

    Can I create “bookmarks” in my report?

    I can confirm that JRB-Bldr’s solution in naming a report output to a pdf file work great. Thank-you JRB-Bldr. And thanks to this forum, I have learned how to use the report writer. But my accounting report contained almost a thousand pages, making it difficult to navigate. Is there a way to...
  5. kamweng

    Windowstate = 2 not fully working in report viewer

    I'm sure this is an old topic but my search in this forum is not fruitful. I noticed the report viewer title bar showed the "Maximize" button and when I clicked it, the report will then maximized. KEYBOARD "{CTRL+F10}" have no effect on the report viewer. If I changed the windowstate to 1...
  6. kamweng

    Using wildcard(*) in "With Thisform/Endwith"?

    The more I used VFP9 in my work, the more I realized I could shorten my coding by using certain command. Now I wonder whether is it possible to use wildcard(*) in "With Thisform/Endwith". Take for example these codes - WITH THISFORM .SETALL("TOP",nTOP,"E1") .W99.TOP = nTOP + 30 .M99.TOP =...
  7. kamweng

    Need Insight on IIF()

    Normally my statement on IIF() worked. But I am unable to convert this: IF mYY = '2012' mPDF = '_1306.pdf' ENDIF into this: IIF(mYY='2012',mPDF='_1306.pdf',mPDF=' ') Is it true that I cannot store value into variables when I used IIF()? Or is it my coding is wrong...
  8. kamweng

    Convert String to Variables

    I would be grateful if you could help me to convert String to variables. For example: ABCD = 1234 XX = 'AB' YY = 'CD' XXYY = XX+YY ? XXYY Is there a way to obtain the result as 1234 and not as 'ABCD'. Any helps or hints will be valued.
  9. kamweng

    Conditional Color in Detail Band

    I have just learnt how to use the VFP9 (SP1) Report Writer. Now I wonder is it possible to have conditional foreground (pen) color in the Detail Band. I have searched the FQA, help file and the KEYWORD "Detail Band", but could not find an answer. I tried "IIF(dbr.tb <= 0, forecolor =...
  10. kamweng

    Using ? to print in color

    I am an amateur programmer and have learned a lot from this forum. I know I should use the report writer but I am used to hard coding the receipts. Please teach me how to print certain text in color (beside black) using the “?” command. I did searched this forum and FAQ but couldn’t find the...

Part and Inventory Search

Back
Top