Variable DBF HTML Tablename

Topics: Developer Forum, User Forum
Jan 12, 2012 at 3:20 PM

Seems like a simple one. Depending on the user logged in, I want to display different data in a table on a HTML Page.

 

I've tried every way I think of, but each one generates the missing expression error.

 

For example, in main.prg the DBF name is set as  oSession.Value("UserDB","DB-"+Substr(oProp.Action,5,10)) && The name of the db is called from the 5th digit in the string.

Now in the HTML, you normally have

<dbname>

</dbname>

Simple. But I cant get this to change by variable. Am I missing someting here??

Coordinator
Jan 12, 2012 at 4:10 PM

My guess is that oProp.Action might be .NULL..  In main.prg you can assign it a default value so that it always has something..