PDA

View Full Version : 20 Compile error



Russell McDougall
28-Nov-2019, 03:00 AM
This is probably a dfreports issue but it shows up in 20 after a did a dfreport library import

cPrintDialog.pkg from Dataflex reports 7.0
Compile error message is "Conversion from string to Pointer is not allowed use memcopy function
In any case the move to aChar does not make sense
appears in both 32 Bit and 64 Bit compiles




// Convert a string to a fixed length char array
{ Visibility = Private }
Function StringToCharArray String sValue Integer iLength Returns UChar[]
Address aChar
UChar[iLength] uChars


Move (AddressOf (uChars)) to aChar
Move sValue to aChar < Results in compile error


Function_Return uChars
End_Function

Vincent Oorsprong
28-Nov-2019, 03:07 AM
Russell,

Yes, this is a known issue and for the example workspace fixed. So go to the DataFlex 2020 examples, DataFlex Reports and appsrc and copy the cPrintDialog.pkg from there. This does not depend on the DataFlex Reports version used so it can be copied.

Russell McDougall
28-Nov-2019, 03:39 AM
All perfect now for that issue.
Grateful thanks