Copy and paste into a edit text box
Forums
Hello everybody,
I've been working on a macro that allow users to import a database using a ODBC connection. The last step I want to implement is allowing the user to type a Select Query in the text edit box en use that query with the clien.importODBC function. The query works and so does the ODBC connection, however in Query language you might want to use a ENTER every now and then to clean up the code a bit.
As a Example:
Select * from Tablename
where column = "IDEAScripting.com Example"
This query will work, however I cant copy paste it into a edit box because the edit box doesn't allow enters. It will only show "Select * from Tablename".
I think it might have something to do with the DIV style of the editbox but I simply can't find any documentation from IDEA about what styles they have.
If someone knows if this is possible or knows the style code I am looking for, I would love to hear it ;)
With kind regards
Ivo
Ok, so the 4096 is correct
Ok, so the 4096 is correct but you also have to include the 4 as this allows the text box to be multiline and you should also add 64 that adds vertical scrolling (128 for horizontal scrolling). So your style should look something like 4 + 64 + 4096 and that should get your working.
Brian
Hey Brian,
Hey Brian,
That sounds really helpfull. I'm a student, studying ICT with a specialization on database/datawarehouse/data analyses and machine learning. I've used a lot of different programming tools and I must say that the community (except for this site) is so little on IDEAScripting and the library of IDEA is really driving me crazy. The fact that they say arrays can not be dynamic in there documentation while they can be dynamic just makes me angry. If it wasn't for you demo video on using dialogs and this forum it would be impossible to make a good working macro.
Ivo
Does it not allow soft enters
Does it not allow soft enters? Shift+Enter?