Post Reply 
Access Note using string variable
12-29-2017, 06:21 PM
Post: #4
RE: Access Note using string variable
(12-29-2017 04:40 PM)StephenG1CMZ Wrote:  Seems to work OK here on Android.
Code:

EXPORT TRYN()
BEGIN
 LOCAL m1:="my.txt";
 Notes(m1);

END;
The only time I saw Invalid Input was before I created the file, so I suggest checking the filename matches (I think it is case sensitive). Also suggest avoiding names like M1 just in case there is confusion with Matrix Number 1 (which cannot hold strings).
Are you seeing the Invalid Input when you assign a string to m1 or when you execute Notes(m1)?

Ive checked again and the problem seems to be due to the input statement I am using in my main program

Code:

EXPORT TRYN()
BEGIN
LOCAL m1;
INPUT(m1,"Enter Filename","Filename","",0,"my.txt");
Notes(m1);
END;

If the above is run and the default filename is accepted with OK, then Notes works fine. However if you click on the textbox, so that the string appears on the edit line, then even if you just ok without an edit, it throws "Invalid input"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Access Note using string variable - Stevetuc - 12-29-2017 06:21 PM



User(s) browsing this thread: 1 Guest(s)