Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I call a function from a menu, pass a argument then run?
#5
I didn't realize I wasn't declaring the right type argument in the function statement.

A few of the examples I was looking at used str& in the function statement and I was thinking that was the syntax.

I thought using lpstr would just pass the pointer to the function (which it does, I get that) not getting the fact that, that is all the function needs to be able to read the variable.

It makes sense now why I've seen you recommend using lpstr if str is not needed. As long as you don't need to access and modify the string, lpstr smaller in memory.

str must be used when not sure if string will be text or numeric and when you need to modify the string or want to use properties of type str.

str& is used when you need to pass a variable

And I don't know a damn thing about str* can you direct me to the right help pages?

Also could you suggest the best course of study since there really is no "How to program in QM" What's the closest thing C++?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)