Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to copy string to another function
#5
This is what i tried to recover the s1 function in the main dialog:

out s1
s1.setwintext(id(1004 hDlg))

The s1 is populated earlier, so the problem can be here i think..

Another function uses the same s1 as called here in another function, populated this way through clipboard:

str s1
s1.getclip

After this i let a number of searches be done, at the end i can visualise the 's1' with out s1
And return to the main dialog,
All i want is a possibility to populate the (id(1004 hDlg)) with the s1 what i could read out in the other function.
I thought i had to make another string and populate it with the data like this:
str undo
undo=s1
undo.setwintext(id(1004 hDlg))

Or should i place it in another string at the last function to prevent that the string is reused and emptied before used?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)