Variables and operators

Help with writing and playing macros

Variables and operators

Postby Fabrice » Fri Jul 30, 2004 12:11 pm

Hi all,

How about include variable in UE macros ?!?
This is really powerful to have powerful macros.

For example, the GetValue function is cool but will be more interresting if it keep the value and paste it after some operations.

In Oracle, if I got an error in the package body, the line that is show is from the line of the body. So I have to add the line showing by Oracle and the line start of the package body.

I can't do this in UE and it's frustrating.
User avatar
Fabrice
Newbie
 
Posts: 2
Joined: Wed Jul 28, 2004 11:00 pm

Re: Variables and operators

Postby mrainey56 » Fri Jul 30, 2004 1:09 pm

For example, the GetValue function is cool but will be more interresting if it keep the value and paste it after some operations


Here's a way to capture the value from GetValue, store it in a User Clipboard, and paste it later on. Maybe you'll get some ideas for a way to solve your problem.


InsertMode
ColumnModeOff
HexOff
UnixReOn
Clipboard 1
Find "string1"
Key HOME
"
"
Key UP ARROW
GetValue "Enter Value"
Key HOME
StartSelect
Key END
Copy
DeleteLine
Find "string2"
Paste
Clipboard 0
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: Variables and operators

Postby Fabrice » Mon Aug 02, 2004 11:10 am

Thanks mrainey56 for this tip.

It's useful.. but not for me at the moment :roll:

I want to make some operations (sorry for my english :wink:).
For example :

1. Find a string
2. Save the line of the string (example: 55)
3. Ask the user a value (example: 160)
4. Add this value with the line save before (example: 55 + 160)
5. Goto Line of the result (example: 215)

I can do the adition with the sum of columns... but it's not included in the macro functions :cry:
User avatar
Fabrice
Newbie
 
Posts: 2
Joined: Wed Jul 28, 2004 11:00 pm


Return to Macros