Page 1 of 1

Locating texts.

Posted: Sun Dec 08, 2013 8:39 pm
by tasdvl9
Hi,

I'm taking over a project from a fellow developer.
When I invoke Livecode I noticed some of the controls in my stack are pre-filled.

Is there a way of locating where these predetermined values are being stored?
Is there a way to open up a .rev or .dat file in Livecode?

Thanks!
I'm getting my feet wet and still fuzzy on a lot of the Livecode features.

Re: Locating texts.

Posted: Sun Dec 08, 2013 8:55 pm
by chris25
I am a beginner :( so I am probably out of line on this one, but I really could not help but wonder two things when I read your post:
1. what exactly is pre-filled?
2. Do you not have access to the code? Is the stack you have a 'stand alone' ?
I'll just wait and see what you reply
kind regards
chris.

Re: Locating texts.

Posted: Sun Dec 08, 2013 9:06 pm
by vedus
tasdvl9 wrote:Hi,

I'm taking over a project from a fellow developer.
When I invoke Livecode I noticed some of the controls in my stack are pre-filled.

Is there a way of locating where these predetermined values are being stored?
Is there a way to open up a .rev or .dat file in Livecode?

Thanks!
I'm getting my feet wet and still fuzzy on a lot of the Livecode features.
can you be a little more specific what you mean about pre-filled?
do you mean buttons,images,can you show something ?

Re: Locating texts.

Posted: Sun Dec 08, 2013 10:33 pm
by dunbarx
Hi.

The others have pointed out exactly the proper questions.

If you open the "Find and Replace..." tool in the "Edit" menu, you will be able to set up a search. Select "This stack file and its stack files" and search for instances of "set" and "put". The "script" option is already selected.

This should give you a list of all handlers that may have set properties of controls, perhaps in "openStack" handlers and the like. It will not show you any properties set by hand, say from the message box. But it is a start.

Craig Newman

Re: Locating texts.

Posted: Mon Dec 09, 2013 4:33 am
by tasdvl9
Hi Craig,

Thanks! The variables are definitely being set in openstack.

put field "fldUser" of card "cdVersion" of stack "Defaults" into gUser

My confusion stems from the fact I do not how this variable is initially set.

Since this is code being passed on from a previous developer I am going through it
line by line to get a better understanding.

For instance, the variable fldUser is being set to 'John Smith' when I bring up the stack but
I'm not sure where 'John Smith' is stored so that it fills the control box.

Any ideas? Perhaps it is in a .dat file. Typically how would this be done?

I appreciate all of the help.

Re: Locating texts.

Posted: Mon Dec 09, 2013 4:49 am
by Simon
Hi tasdvl9,
In the Find and Replace you can select Field Text. Then search on John Smith.
Make sure you have "This stack file and it's stack files" selected as well from the dropdown.
Do this all from the Edit in the top menu bar not the script editor.

Simon

Re: Locating texts.

Posted: Mon Dec 09, 2013 4:58 am
by tasdvl9
Thanks, Simon!

That worked out well.

I appreciate the prompt response.