Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5878

Re: Memoread not working

From Karl Wochele <kw@e﹐s-system.dot.de>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Memoread not working
Date 2013-09-30 08:48 +0200
Message-ID <basl62Felf5U1@mid.individual.net> (permalink)
References <3b14a2d6-d414-41a6-bed5-6dabde6dbcd1@googlegroups.com>

Show all headers | View raw


Hi Rob,

your mistake is the "="-Operator.

"X"="" -> True
""="X" -> False
"X"==""-> False

So you have to use memoread()==NULL_STRING or NULL_String=memoread()

HTH
Karl

Am 28.09.2013 10:49, schrieb Rob van Erk:
> I use following simple code but no idea why it does not read the TXT file:
>
> local cString as string
> If (cString := MemoRead("c:\readme.txt")) = null_string
>     Errorbox("error", "can not read file")
> endif
>
> The "readme.txt" is not read-only, it does exist, it has a text in it, the user has all rights on c:\ root. No idea why the file is not read by the code. I also tried to open other files like "c:\doc.csv"
>
> Using VO2.8 SP2.
>
> Thanks for any tips...
> Rob
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Memoread not working Rob van Erk <erk.v@hotmail.com> - 2013-09-28 01:49 -0700
  Re: Memoread not working BGeorge <GeorgeTritsos@yahoo.gr> - 2013-09-28 02:55 -0700
  Re: Memoread not working malcolm gray <malcolm.gray@ntlworld.com> - 2013-09-28 14:46 +0100
  Re: Memoread not working Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-09-28 21:33 +0200
    Re: Memoread not working Rob van Erk <erk.v@hotmail.com> - 2013-09-29 12:51 -0700
      Re: Memoread not working Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2013-09-29 22:59 +0200
  Re: Memoread not working Karl Wochele <kw@e©os-system.dot.de> - 2013-09-30 08:48 +0200
    Re: Memoread not working Frans Wauters <info@wautersit.com> - 2013-09-30 02:06 -0700
  Re: Memoread not working Rob van Erk <erk.v@hotmail.com> - 2013-09-30 11:10 -0700
  Re: Memoread not working "Jamal" <jamal@examples.net> - 2013-09-30 15:14 -0400

csiph-web