Assign string with { & } characters to a character variables

Potish

Member
I have two questions that should be fairly simple

1.) I am trying to assign a string that start and ends with { & } for example "{ price }" to a progress character variable. Progress however keeps giving an error that 'price' is not a know database field. How can I get this assignment done.

2.) How can I check the value of a character variable to determine if it is a integer value?

I am using progress 9.1C
 
Morning,

1) use the tilde character e.g. vString = "~{ price ~}".

2) assign it to an integer variable with no-error, then check the error-status.

Hope this helps.

Regards,

DG.
 

Cringer

ProgressTalk.com Moderator
Staff member
2) As mentioned above, but you don't have to check error-status. The integer will be ? if it's not an integer string.
 
Afternoon,

Cringer, is that always the case ? Doesn't the no-error mean that the assign doesn't take place if there's an error and the value of the integer will therefore be as it was before the assign...no-error. At least that's the way it looks in my v10.2b editor.

Regards,

DG.
 
Top