Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.07.24;
Скачать: CL | DM;

Вниз

Использование макросов в FIBPlus   Найти похожие ветки 

 
Olivka ©   (2003-06-29 16:11) [0]

Не подскажите, как использовать макросы в SelectSQL?
Select * from @my_table

Каким образом задавать me_table? переменная не проходит. Это свойство компонента какое-то?


 
Alexandr ©   (2003-06-30 07:47) [1]

paramByName("my_table").AsString


 
Johnmen ©   (2003-06-30 09:23) [2]

А хелп посмотреть ломает ? :)))

While working with TpFIBDataSet and TpFIBQuery it is also possible to
use in the query macroses of the following types:
@MACROS_NAME[%][#]


@ - a sign of the beginning of the macros
% - an optional beginning of the default value of the macros
# - an optional sign that it it necessary to write the value of the macros
in inverted commas.

Using macroses you can dynamically change names of tables and fields
in a query, conditions, etc.

To get access to values of macroses use ParamByName. ParamNameCount helps to get the total number of macroses in a query.

The example of using of macroses:

select * from @TT%TABLE1 where @F%FIELD1=@VAL%#John

The default form of the query before sending off to the server is

select * from TABLE1 where FIELD1="John"


 
Olivka ©   (2003-06-30 20:26) [3]

У меня такого в хелпе нету! я его естественно весь перелопатила, а там во многих местах пусто и только надпись coming soon.. У вас какая версия?


 
Alexandr ©   (2003-07-01 06:54) [4]

для тех кто на бронепоезде

http://www.fibplus.com.ua/download/macros.zip

http://www.devrace.com/files/fibplus_help_d6.zip


 
Olivka ©   (2003-07-01 19:42) [5]

спасибо, дорогие!



Страницы: 1 вся ветка

Текущий архив: 2003.07.24;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.017 c
1-77958
Separator
2003-07-11 05:35
2003.07.24
Создание и уничтожени обьектов.


1-77845
AndrewVolkov
2003-07-10 00:03
2003.07.24
Чужая DLL - использование???


3-77765
stone
2003-07-02 09:32
2003.07.24
Access и базы данных большого объема


3-77749
USAtyj
2003-07-01 11:29
2003.07.24
Как в Paradox заставить все изменения сохранить физически...


11-77815
Bartov
2002-11-21 20:50
2003.07.24
Кто-нибудь фильтрует сообщения в форуме?