Announcement

Collapse
No announcement yet.

Problem with saving data in PBDLL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lance Edmonds
    replied
    If you are using DDT, then use CONTROL GET TEXT to retrieve the text into a string.

    If you are using API/SDK techniques, then use the GetWindowText() API to retrieve the text.

    Finally, write the text to a file using standard file techniques, for example:
    Code:
    ' Psuedo code - lets assume a$ contains the text from the edit control
    x& = FREEFILE
    OPEN "MYFILE.DAT" FOR OUTPUT AS #x&
    PRINT #x&, a$
    CLOSE #x&

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Colin Schmidt
    replied
    Hello,

    I'm no expert, but I have been playing with PB for a couple of months. I can have a look for you.

    [email protected]
    Colin Schmidt

    ------------------
    Colin Schmidt & James Duffy, Praxis Enterprises, Canada

    Leave a comment:


  • Brian Reynolds
    started a topic Problem with saving data in PBDLL

    Problem with saving data in PBDLL

    I have bravely started using PBDLL6 and am not finding it that
    difficult.

    However, I am having a problem saving data from text boxes to a
    disk file.

    Is there someone who would accept my code by email and let me
    know what I am doing wrong?

    Regards,
    Brian
    [email protected]

Working...
X