Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Pre-declare string length for BYREF params?


1 reply to this topic

GreenLight

GreenLight
  • Members
  • 5 posts

Posted 30 April 2003 - 20:00

huh.gif I've read through (some of) the documentation, and discovered that if you are going to pass a string to a function that declares the parameter as BYREF, then you must give the string variable a length in its declaration. Is this still true for IS Pro 7?

prozacrefugee

prozacrefugee
  • Members
  • 38 posts

Posted 01 May 2003 - 23:55

Shouldn't be at all - a BYREF just passes the adress of the variable in memory. This will always be the same size, dependent on your hardware.