Re: [Delphi 6] How can i copy a DbMemo to a Memo?
"Broc_Ex_Co" <brocexco@xxxxxxxxxx> wrote in message
news:48578894$0$895$ba4acef3@xxxxxxxxxxxxxxxxx
(Sorry for my poor english.)
Pardon my French, too.
I have to manipulate a DbMemo in a file and copy it in a Memo.
Table.FieldByName('Memo1').Value is a Variant.
How is it possible to copy it in a Memo?
Assign it to something that expects a string. The value is most
likely 'really' a string and even if it isn't, the runtime will
do its best to convert it to one.
The Memo's Lines property is a TStrings object, and its Text property
is a string. Assign your variant to that.
Groetjes,
Maarten Wiltink
.
Relevant Pages
- Re: Code to delete/unlink Linked tables
... Public intLinkODBCTables As Variant, intLinkDB2Tables As Variant ... Public strLinkBackendDB As String, strLinkDSNname As String, strLinkLibName ... ' MsgBox "This database is in MDE format...I will delete/recreate ODBC ... Public Sub fncLinkDB2Table() ... (microsoft.public.access.modulesdaovba) - Re: OPENFILENAME A P I. User cancels ?
... The variable FName will be a Boolean False if no file was selected or a String containing the fully qualified file name if the user selectes a file. ... Const ahtOFN_OVERWRITEPROMPT = &H2 ... Function GetOpenFile(Optional varDirectory As Variant, ... Dim strFilter As String ... (microsoft.public.excel.programming) - RE: multi-select file dialog
... strCustomFilter As String ... Global Const ahtOFN_OVERWRITEPROMPT = &H2 ... Dim strFilter As String ... Function GetOpenFile(Optional varDirectory As Variant, ... (microsoft.public.access.modulesdaovba) - Re: Replace space in text file
... In four of the above cases you have specified which type of variable you want VB to create (Integer, Long, String or whatever). ... in the case of vChars you have not specified the required variable type and VB will therefore create it as a Variant. ... For example, if vChars was an Integer then VB would read two bytes from the file, and if it was a Long it would read four bytes, and if it was a standard variable length String which currently contained nine characters then it would read nine characters from the file and if it was a String that currently contained just one character then it would read one character from the file. ... (microsoft.public.vb.general.discussion) - RE: multi-select file dialog
... strCustomFilter As String ... Global Const ahtOFN_OVERWRITEPROMPT = &H2 ... Dim strFilter As String ... Function GetOpenFile(Optional varDirectory As Variant, ... (microsoft.public.access.modulesdaovba) |
|