Missing a function to insert RTF-formated text from a (bind-) variable.
with the current function "SalRTFDocumentInsert", which only works with Files, we
1. load the RTF-text from the database
2. save it to a temp file
3. use "SalRTFDocumentInsert" to insert into the RTF-Control
I would prefer a function with Paramtetern because it makes the source code much easier as an additional function.
A future extension would only require another type and not another function
bOk = SalRTFDocumentInsert(hWnd, sFileOrVariable, bOverwrite, nType )
nType = 0, from file (sFileOrVariable defines the file)
nType = 1, from variable (sFileOrVariable defines the variable)
As an example I would like to mention the 17 existing SalDateXXX functions of
SalDateCurrent to SalDateYearBegin these could be replaced by 2 functions and an additional parameter,
first function return date d = SalDate(..., Type)
second function return number n= SalDatePart(..., Type)
this would also speed up the training for beginners in my opinion, because the scope of functions would be clearer (less is more)
thanks in advance
Matthias
Extending SalRTFDocumentInsert
Re: Extending SalRTFDocumentInsert
+1
We also do this using this long way round creating temp files. It's annoying.
We also do this using this long way round creating temp files. It's annoying.
-
- Founder/Site Admin
- Posts: 3459
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: Extending SalRTFDocumentInsert
+1
Regards,
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: Extending SalRTFDocumentInsert
++++++1
/EDIT.
This can be done using
SalRTFTextSelect
SalRTFTextPaste
/EDIT.
This can be done using
SalRTFTextSelect
SalRTFTextPaste
Who is online
Users browsing this forum: [Ccbot] and 0 guests